java multi-thread
teacher3010
这个作者很懒,什么都没留下…
展开
-
multi-thread
1. sleep() and yield() don't release the object lock 2. wait will release the object lock when called原创 2013-03-19 12:07:01 · 63 阅读 · 0 评论 -
1. multi-thread --volatile
[b]1.[/b] If a variable is declared with the [b]volatile [/b]keyword then it is guaranteed that any thread that reads the field will see the most recently written value. The volatile keyword will not ...原创 2013-02-25 21:30:39 · 57 阅读 · 0 评论 -
2.multi-thread: life cycle
[img]http://www.roseindia.net/java/thread/life-c1.gif[/img] 1. [b]New state[/b] After the creations of Thread instance the thread is in this state but before the start() method invocation. At this...原创 2013-02-26 10:58:31 · 95 阅读 · 0 评论 -
3. multi-thread: different between process & thread
[b]Processes[/b] A process generally has a complete, private set of basic run-time resources; in particular, each process has its own memory space. (To facilitate communication between processes, mo...原创 2013-02-26 11:19:23 · 67 阅读 · 0 评论 -
4. multi-thread : thread status
转载自此 A java thread is an execution context or a lightweight process. It is a single sequential flow of control within a program. Programmer may use java thread mechanism to execute multiple tasks a...原创 2013-02-26 15:29:22 · 92 阅读 · 0 评论 -
5. multi-thread: different between yield()/join()/sleep()
[list] [*][b]yield()[/b] method pauses the currently executing thread temporarily for giving a chance to the remaining waiting threads of the same priority to execute. If there is no waiting thread o...原创 2013-02-26 15:31:53 · 75 阅读 · 0 评论 -
6. multi-thread: consumer & producer
[url]http://tutorials.jenkov.com/java-util-concurrent/blockingqueue.html[/url] [url]http://jiji87432.iteye.com/blog/1773770[/url]原创 2013-02-26 16:25:23 · 76 阅读 · 0 评论 -
7. multi-thread: deadlock
1. [b]What is deadlock[/b] ? when two or more threads waiting for each other to release lock and get stuck for infinite time , situation is called deadlock . it will only happen in case of multitaski...原创 2013-02-27 09:32:35 · 96 阅读 · 0 评论 -
0 multi-thread: summary
[url]http://www.journaldev.com/1162/java-multi-threading-concurrency-interview-questions-with-answers[/url]原创 2013-02-27 09:44:54 · 51 阅读 · 0 评论