Saturday, September 11, 2010

casestudy1

Take two threads (Thread1 and Thread1).Thread1 reads line by line from a.txt,After reading one line suspend thread1.Thread2 has to write that line into b.txt.After writing line into b.txt,it must be suspended.it must be continued until all content of a.txt is completed