Tell me such a thing. If the program defines an event handler for my event and I launch Thread.sleep(100)
, while the program is standing still, can my event come? They are asynchronous?
Thank you in advance.
Tell me such a thing. If the program defines an event handler for my event and I launch Thread.sleep(100)
, while the program is standing still, can my event come? They are asynchronous?
Thank you in advance.
Sleep does not release the lock. So all attempts to call methods that require this lock will be waiting for it to be released.
In general, the question is quite vague. What does "event come" (where)? What does "prog" mean (a specific stream probably all the same)?
Source: https://ru.stackoverflow.com/questions/133375/
All Articles