Results 1 to 7 of 7
- 04-14-2009, 04:56 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 7
- Rep Power
- 0
plz help solve dis program 4 me plz plz
Java programming – Write a program for multi-threading where-in two threads are writing/reading from a file. Thread 1 is writing to a file while thread 2 is reading from the file. While Thread1 is writing Thread2 shall not read until Thread1 completes writing similarly until Thread2 complete reading Thread1 shall not write.
- 04-14-2009, 04:58 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
What you have done so far? Show your effort here. What you know about threads?
- 04-14-2009, 05:01 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 7
- Rep Power
- 0
sorry frnd m learnin java bt nw m givin an online xam so i need dat urgently... :(
- 04-14-2009, 05:04 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
My friend, do you really think that you can learn about Java threads in such a simple application(on my view). I think you must study more about thread, take a book and read more and more.
I know this is urgent to you. But no one wants to do your assignments here, even me. Sorry about that.
- 04-14-2009, 05:15 PM #5
Member
- Join Date
- Apr 2009
- Posts
- 7
- Rep Power
- 0
k! I searchd dis forum for hope!!!
bcoz i think u can ans dis quickly!!!
- 04-14-2009, 05:52 PM #6
Here's a link to a good tutorial about threads:
Processes and Threads (The Java™ Tutorials > Essential Classes > Concurrency)
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 04-15-2009, 04:39 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes in couple of minute I can write this application. But then how you learn and how you take the exam. No you cannot do that lol. I want to help you, that's why I saying this.
Anyway, you got a nice example from Chris. Try to workout it first and if you stuck on something ask it here more clearly. We'll help you. :)
Similar Threads
-
Solve my program
By Mika in forum New To JavaReplies: 7Last Post: 01-21-2009, 06:20 AM -
Plz solve this....
By theone3nu in forum Java 2DReplies: 3Last Post: 01-08-2009, 05:01 PM -
Plz solve this....
By theone3nu in forum New To JavaReplies: 9Last Post: 12-23-2008, 09:42 AM -
please I need your help to solve these problems
By edge_5050@hotmail.com in forum New To JavaReplies: 2Last Post: 12-17-2008, 08:34 PM -
how to solve capital country program in java applet
By shadab in forum AWT / SwingReplies: 2Last Post: 08-27-2008, 02:40 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks