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


    User Avatar

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

    thanks for that
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook