WaitForSingleObject

Put your problem here if it does not fit any of the other categories.

WaitForSingleObject

Postby vkornienko » Tue Oct 21, 2008 11:47 am

Hi all!
Is there any way to synchronize threads in Andorid application with windows like functions "WaitForSingleObject" and "WaitForMultipleObject"?
I understand that it's a Java specific question, but may be someone knows the answer for it here...
vkornienko
Freshman
Freshman
 
Posts: 3
Joined: Tue Oct 21, 2008 11:19 am

Top

Postby MrSnowflake » Tue Oct 21, 2008 1:14 pm

I guess you need Object.wait() and Object.notify and Object.notifyAll(). But I'm not sure. Take a look at the Java threading tutorial: http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 19 guests