Results 1 to 7 of 7
  1. #1
    jitun2004 is offline Member
    Join Date
    Apr 2009
    Posts
    7
    Rep Power
    0

    Default 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.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  3. #3
    jitun2004 is offline Member
    Join Date
    Apr 2009
    Posts
    7
    Rep Power
    0

    Default

    sorry frnd m learnin java bt nw m givin an online xam so i need dat urgently... :(

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  5. #5
    jitun2004 is offline Member
    Join Date
    Apr 2009
    Posts
    7
    Rep Power
    0

    Default

    k! I searchd dis forum for hope!!!
    bcoz i think u can ans dis quickly!!!

  6. #6
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default

    Here's a link to a good tutorial about threads:

    Processes and Threads (The Java™ Tutorials > Essential Classes > Concurrency)

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by jitun2004 View Post
    k! I searchd dis forum for hope!!!
    bcoz i think u can ans dis quickly!!!

    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

  1. Solve my program
    By Mika in forum New To Java
    Replies: 7
    Last Post: 01-21-2009, 07:20 AM
  2. Plz solve this....
    By theone3nu in forum Java 2D
    Replies: 3
    Last Post: 01-08-2009, 06:01 PM
  3. Plz solve this....
    By theone3nu in forum New To Java
    Replies: 9
    Last Post: 12-23-2008, 10:42 AM
  4. please I need your help to solve these problems
    By edge_5050@hotmail.com in forum New To Java
    Replies: 2
    Last Post: 12-17-2008, 09:34 PM
  5. Replies: 2
    Last Post: 08-27-2008, 03:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •