Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run() // Method to run the thread.
- {
- Process process;
- DataOutputStream out;
- try {
- out = new DataOutputStream(new FileOutputStream(fileName));
- PrintWriter printWriter = new PrintWriter(out);
- while(runList.isEmpty() == false)
- {
- process = runList.deQueue();
- process.run(printWriter);
- }
- printWriter.close();
- } catch (FileNotFoundException | InstantiationException | IllegalAccessException | InterruptedException e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement