I have more questions :)
Is it possibe to create a "threadlock", "lock" if you use a file as a common resource?
If you have a class that create data and put the data into a file and you have another class that will take data from the same file.
How do you stop them from using the file at the same time? Each class use its own thread.
If its possible, please give me an code example.