Recently sorted out the android-to get the network time, to obtain a specific time zone, time synchronization method. Specifically as follows:
Method One:
SimpleDateFormat DFF = new SimpleDateFormat ("Yyyy-mm-dd HH:mm:ss");
Dff.settimezone
It has been nearly a year since I came into contact with mongodb, And I have accumulated a lot of experience in indexing it. On this dark night, I would like to summarize the mongodb index. I. Index description mongodb has two types of indexes:
Recently using Redis, the key to do the expiration time, encountered a problem, here is not to say, I set the expiration of a key of 100 days, the results of the test process and there is no problem, but the line is frequently error.
The component
Thread basics: thread (4) -- basic thread operations in JAVA (below)2-2. interrupt Signal
Interrupt, the meaning of the word itself is to interrupt, terminate, block. When a thread receives this signal (command), it sets the self-generated status
Experience on creating indexes in mongodb
It has been nearly a year since I came into contact with mongodb, And I have accumulated a lot of experience in indexing it. On this dark night, I would like to summarize the mongodb index.
I. Index
Multithreading1 , ProcessProcess: When a program goes into memory run, it becomes a process. Process is independent, dynamic, and concurrency.A, independence: The process is a separate entity in the system, it can have its own independent resources,
Problem:--------------------------------------------------------------------------------User feedback Some timing activities are opened early or postponed1) Log in to the server, check the time is really slow or fast. In short, there are several
-- ===========================--MongoDB Slow query log-- ===========================
reference:http://docs.mongodb.org/manual/tutorial/manage-the-database-profiler/
Profiling levels:1 Resume0-the Profiler is off, does does not collect any
Basic threading Operations in JavaThis is the thread state switch legend given earlier, and may not fully understand the switching conditions in it, and we will detail how these thread states are manipulated in Java.This article will explain notify,
This article reproduces the address:Http://www.cnblogs.com/zrtqsk/p/3776328.html
Multithreading is a very important aspect of Java learning and a basic skill that every Java programmer must master. This article is just multithreading details,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.