Discussions

Web tier: servlets, JSP, Web frameworks: Managing threads

  1. Managing threads (1 messages)

    I have a java class that implements the Runnable interface. The program is configured to have 15 threads of this class. Now I have to manage these threads to process files in a directory ie.. the directory contains hundreds of text files that have to be processed by these threads in such a way that no two threads process the same file. Can someone give me the code for this please.

    Threaded Messages (1)

  2. two-threaded code[ Go to top ]

    Please see below link http://www.developerzone.biz/index.php?option=com_content&task=view&id=119&Itemid=36&PHPSESSID=1d49472c296b1813115ef07c40ff28e6