[question] read operation problem
From: Hocheol Bill Lee (manime_at_sogang.ac.kr)
Date: 09/22/04
- Next message: Nils O. Selåsdal: "Re: Linux C++ IDE"
- Previous message: Thomas Keller: "Linux C++ IDE"
- Next in thread: Nils O. Selåsdal: "Re: [question] read operation problem"
- Reply: Nils O. Selåsdal: "Re: [question] read operation problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Sep 2004 21:01:47 +0900
Hello
I'm writing MPEG program using more than 2 threads.
First thread read MPEG data from MPEG hardware and write data to file.
Second thread read file and send data to client program.
When First thread wrote data file, second thread read that file
successfully.
But when first thread closed file and opened other file for writing(becase
each file's size is fixed), second thread couldn't open newly created
file...
So I checked why that problem occurred. I confirmed that using errno and
strerror(errno) function. Errno is 2, or resource temporarrily unavailable.
When I implemented this using other process(using fork() ), this problem did
not happened....
Now I don't know why this problem happened... This may be thread's problem ?
Please give me advice about this.
Thank you
- Next message: Nils O. Selåsdal: "Re: Linux C++ IDE"
- Previous message: Thomas Keller: "Linux C++ IDE"
- Next in thread: Nils O. Selåsdal: "Re: [question] read operation problem"
- Reply: Nils O. Selåsdal: "Re: [question] read operation problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|