multithreading - sequential execution of threads in java -


i have 4 threads t1,t2,t3,t4 acting on same object of class.i have restriction,t2 should execute after t1 has executed , t3 should execute after t2 has executed,and same case t4.i mean sequence should compulsarily t1 t2 t3 t4.how can make sure these 4 threads execute in sequence only.

if need control sequence that, don't have parallelism, , multithreading useless. seem need single thread perform operations sequentially.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -