Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wait_semaphore

Status
Not open for further replies.

nothingliketherain

Programmer
Nov 6, 2004
1
IR
I have some problems debugging a multithread application with softice.How can i find the program executed code when sleep or sleepex or wait_semaphore functions are called.
 
If I understand it correctly, sleep, sleepex, etc. all tell the Windows scheduler to abandon the current threads remaining runtime, and to not wake up until the event has been satisfied (time has elapsed, event signaled, etc).

This allows another thread to run (both inside and outside your application, but I would assume you're only concerned with the ones inside your app). So you would (prior to the sleep call) view the list of threads in the process, and then set breakpoints on all the ones other than the one about to go to sleep.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top