wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Need advice on multithreading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Need advice on multithreading" Watch "Need advice on multithreading" New topic

Need advice on multithreading

James X Williams

Joined: Dec 07, 2006
Posts: 11
I am relatively new to Object Oriented Programming and am creating my first decent sized Java application. I have to create an application that users must login to, select which sub-system they want to use, and then select the thing they want to do from a menu. These tasks represent, as I see it, modules that can be developed as separate pieces and then assembled. Here are the modules, again as I see it:
-user login
-select the system the user wants
-menu options (and the rest of the application)
My question is about threads. I know how to make these modules run on different threads. Each module would spawn a new thread for the next module to run on. My question is, is this a good idea or should I just write all of them on the same thread? When is it a good time to spawn a new process off on a separate thread?
Thank you very much in advance!!
It is sorta covered in the JavaRanch Style Guide.
subject: Need advice on multithreading
Similar Threads
Basic architecture of Web Application using Spring Dynamic Modules and OSGI (Equinox Implementatio)
Spawing operations off to separate threads Vs executing on the EDT
web application with multithreaded sockets
Closing original window when logging out
multiple modular application implemetation using struts