Posted on 2003-11-05
I am a beginner in thread-programming and want to solve this problem:
a text-file should be copied every 10 sec. from folder A to folder B.
first the program should read a lock-file that indicates 1 or 0.
If the lock-file set to 1 the program should try for 10 sec. then exit else the program can copy the text-file from folder A to folder B (the program should set the lock-file to 1 before starting copy the text-file and after finishing to 0)
How many thread should be used??
any ideas ??
can somebody help