Synchronization Tool

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elsharon
    New Member
    • Mar 2008
    • 1

    #1

    Synchronization Tool

    Hi,

    I need to make a multithreaded applicaion that will have few Threads that Run at the same time make some operation that will succeed or fail, but needs to be terminated whithin 150msec.
    It means i can have about 10 threads that at the same time need to do something that last maximum 150msec than to terminate and Go again to the next Group of threads which will do the same thing but on other destination.

    Hope it is not too vouge but i need help....

    I thought about creating a main thread that will hold the Timer it will create the 10 sub threads than after 150 msec will abort all sub threads and create 10 new ones - offcourse i need somehow to know if each thread succeeded the operation or not.

    What is the best way to that and how can i stop the threads elegantlly..

    Thanks in advance
    Sharon
Working...