lkml.org 
[lkml]   [2002]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Basic question
Date

Hi,
I have a question about fork() and messages..

For simplicity, I have a parent process that forks() two child processes (say
pid1 & pid2).

How do I set priority levels of child1 vs child2. I want child1 to have a much
higher priority level, since its going to read inputs from a serial device in
the outside world?

Using basic signal calls say SIGUSR1, how can I communicate (without
semaphores) between child1 and child2 through the parent? For instance if the
child1 gets blocked forever trying to read the serial device then I want to
notify the parent to kill child2??

Your time in this matter is greatly appreciated.


> Regards
>
> Nejhdeh Ghevondian
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.089 / U:2.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site