Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Java or C++ - Threads HELP

  1. Dec 3, 2008 #1
    Java or C++ - Threads HELP!!!!

    I need help with this program. I got five others to do and I won't have time to do it and it's apart of my final exam for next Tuesday, so here is my question I need:

    Create 5 threads which share a file and
    let "even" threads write to a file, and let "odd" delete from a file.
    Cycle 5 threads for 10 times. Make sure final file gives correct output. (no race conditions)

    Please help me out!!!
     
  2. jcsd
  3. Dec 3, 2008 #2

    zyh

    User Avatar

  4. Dec 4, 2008 #3
    Re: Java or C++ - Threads HELP!!!!

    thanks for that
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Java or C++ - Threads HELP
  1. C or Java? (Replies: 20)

  2. C to Java (Replies: 9)

  3. Java &c++ (Replies: 1)

  4. C or Java? (Replies: 18)

  5. Java OR C# (Replies: 3)

Loading...