Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- synchronized public void run(int counter) {
- System.out.println("Hello from the Processor");
- while (i < counter) {
- putInCache();
- try {
- sleep(100);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement