Project Summary

  Analyzed 4 days ago based on code collected 4 days ago.

This is a simple single-class work queue using a pool of thread to execute jobs. It is designed to work in J2ME environment. It lacks features like job cancellation, stats or clean shutdown procedure, but I wanted to keep it simple.

Get the code:

http://j2meworkqueue.googlecode.com/svn/trunk/src/WorkQueue.java

Here is a sample usage:

[...]
final WorkQueue q = new WorkQueue(3);
final Runnable r = new Runnable() {
public void run() {
System.out.println(Thread.currentThread().getName());
}
};
for (int i = 0; i < 10; i++)
q.execute(r);
[...]

Share

In a Nutshell, j2meworkqueue...

 

Activity

30 Day Summary Apr 14 2013 — May 14 2013

12 Month Summary May 14 2012 — May 14 2013

Community

Ratings

Be the first to rate this project
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.