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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -