my dog learned polymorphism*
The moose likes Threads and Synchronization and the fly likes Conversion from single-threaded to multi-threaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Conversion from single-threaded to multi-threaded" Watch "Conversion from single-threaded to multi-threaded" New topic
Author

Conversion from single-threaded to multi-threaded

Sai Swami
Ranch Hand

Joined: Sep 24, 2002
Posts: 51
Hi Geniuses,

Can anyone please help me out with this?

Design a framework (class diagram only) for converting a single-threaded process working on a collection of objects to multi-threaded process working on a batch from the collection. It should support the following features:
•Interfaces needed to be implemented by the client applications should be clearly defined by the framework.
•Logic of splitting and aggregating the objects from collection should be delegated to the client applications (i.e. this logic won’t be part of the framework)
•Should allow configuration of the number of threads as well as the batch size


Any sketchy idea would be fine.


Thanks,
Sai
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2234
    
    7

So do you currently have a single-threaded app or nothing at all?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Sai Swami
Ranch Hand

Joined: Sep 24, 2002
Posts: 51
Nothing exists right now. No sequence diagram is necessary. Only a class diagram.
Sean Doherty
Greenhorn

Joined: Apr 29, 2009
Posts: 13
LOL, need a class diagram for the classes which don't exist! Do you own homework
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conversion from single-threaded to multi-threaded
 
Similar Threads
zahara
Threads 003: Server-Side Strategies
Can I invoke Runtime.gc() in an EJB
Batch processing
Threads 002