So I'm taking this operating system course and I came across a question that is a little confusing. Let me also say that I am not looking for someone to simply provide me with an answer, instead some assistance or good web site links would be greatly appreciated. The question is as follows:
POSIX defines a standard thread package in the context of the C programming language. Several manufacturers provide a POSIX thread package as a user library along with their C programming facilities. If you have a system available to you that supports threads, then design and implement a thread program so that one thread reads a file, while a second thread writes the data to another file.
I assume that my system supports threads. I only have one main machine running XP. My textbook gives an example Linux program that opens two files, and then copies the contents of one file into the other one byte at a time using the POSIX interface. I assume that this is similar to the answer exept that the solution must use two threads.
Thanks in advance!
POSIX defines a standard thread package in the context of the C programming language. Several manufacturers provide a POSIX thread package as a user library along with their C programming facilities. If you have a system available to you that supports threads, then design and implement a thread program so that one thread reads a file, while a second thread writes the data to another file.
I assume that my system supports threads. I only have one main machine running XP. My textbook gives an example Linux program that opens two files, and then copies the contents of one file into the other one byte at a time using the POSIX interface. I assume that this is similar to the answer exept that the solution must use two threads.
Thanks in advance!