|
-
Simple Threading question
Hi there,
I am creating a simple test app for myself and I am not really much of an
expert in threading and multithreading.
I have a component that moves on an applet randomly. At the same time, I
want to move another component, but based on user inputs.
Now, as far as moving the second object, it's just a matter of reading the
event key chars and the first object moves through a thread.
But from what I have seen thus far, I have had a hard time getting these
movements co-ordinated.
What is the best way to co-ordinate my running thread and its randomly moving
object and at the same time retrieving keyboard information and moving my
other objects simultaneously to the observers' eye?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks