Pipe-lined execution

Tags:

Reference : http://network.hanbitbook.co.kr/view_news.htm?serial=385

Java does not have any *conditions* which can be used during thread control. Example of conditions is published in taming java thread. Pseudo code of conditions go like this :

Condition c;

[Thread 1]
waitUntilConditionMet(c);
…do jobs…
setCondition(c);

[Thread 2]
waitUntilConditionMet(c);
…do jobs…
setCondition(c);

[Main]
startThread(Thread1, c);
startThread(Thread2, c);

There is a nice example code of condition in taming java thread, but the code can not be used in commercial products. I think it will very easy to develop my own condition class. I’ll try this later; after my mid-term exam and gre test.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *