Tuesday, January 15, 2013

Java Multi-Threading

1) Solve  Producer Consumer Problem  using wait(), notify()

2) Solve Producer Consumer Problem using BlockingQueues

3) Implement a Blocking Queue

4) Implement a ThreadPool

5) How do you execute 3 threads in the same sequence, one thread prints odd numbers, another thread prints even numbers, and another thread prints the alphabets

6) Implement Dining Philosophers problem.

7) Implement  a Thread safe Cache(use a Daemon thread to do the cleanup in the back ground).

8) Write code to create Deadlock, how can you fix the deadlock.


No comments:

Post a Comment