[LCP]read error -- sloved

Hemant Mohan hemantm at pune.tcs.co.in
Wed Apr 24 20:42:05 UTC 2002


Thanks a lot for your inputs. There was amemory problem in the program which 
was corrupting the variable holding the file descriptor of the write fifo and 
hence it was writting to a different fifo. So read was blocking there.

Thanks a lot for your suggestions and inputs.

Hemant

On Tuesday 23 April 2002 17:52, you wrote:
> > Process B is run before process A, and the printf statement is
>
> desiplayed on
>
> > the screen.
> > But I find that inspite of this process B is blocked on the read as if
>
> there
>
> > is no data in the FIFO.
>
> Hermant,
>
>     What do you mean when you say "process B is run before process A"?
> In other words, how do you KNOW that B MUST run before A? What have you
> coded to ensure that (or checked to ensure that is indeed the case).
>
>     If these are "concurrent processes" then answers like "because
> started B first" mean you do not understand the complexities involved
> when using "concurrent processes" and you should read some standard
> texts which cover the subject (almost any on operating system design
> would do since this is a topic they all cover).
>
> Mike
>
>
> _______________________________________________
> This is the Linux C Programming List
>
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List




More information about the linuxCprogramming mailing list