[question] read operation problem

From: Hocheol Bill Lee (manime_at_sogang.ac.kr)
Date: 09/22/04


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



Relevant Pages

  • Re: [question] read operation problem
    ... > 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. ...
    (comp.os.linux.development.apps)
  • Re: [question] read operation problem
    ... >> 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. ...
    (comp.os.linux.development.apps)
  • Re: vZOOM can handle cross-thread long-term references?
    ... You don't really want a non-polling processor thread to be able to access ... any data on a foreign thread unless you within the context of a memory ... At the end of the entire operation the first thread would contain a 1 in prefs, and the second thread would contain a in prefs. ...
    (comp.programming.threads)
  • Re: vZOOM can handle cross-thread long-term references?
    ... You don't really want a non-polling processor thread to be able to access ... any data on a foreign thread unless you within the context of a memory ... How first thread pass pointer p to second thread - this is separate ...
    (comp.programming.threads)
  • Re: System.Runtime.InteropServices.InvalidComObjectException: Com object that has been seperated fro
    ... > And in the second thread am trying to read an Excel file. ... > smoothly.Its in the first thread am facing the error: ... > user, String password, String authority, Int32 impersonationLevel, Int32 ...
    (microsoft.public.dotnet.framework)