apologies for blank repost
Ole Storm
storm@ifad.dk
Thu, 05 Mar 1998 09:26:41 +0100
Rahul Sood wrote:
>
> Hi,
>
> I posted this a few days ago but there wasn't any response. Could a linux
> user run ps while they have omniNames and one of the echo examples
> running, and report back the output?
Here is a snip of a 'ps' on my Linux machine when I started the server
eg2_impl _once_.
USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND
storm 23763 0.0 0.6 1584 792 p2 S 09:03 0:00 eg2_impl
storm 23764 0.0 0.6 1584 792 p2 S 09:04 0:00 eg2_impl
storm 23765 0.0 0.6 1584 792 p2 S 09:04 0:00 eg2_impl
storm 23766 0.0 0.6 1584 792 p2 S 09:04 0:00 eg2_impl
storm 23767 0.0 0.6 1584 792 p2 S 09:04 0:00 eg2_impl
storm 23802 0.5 0.5 1124 652 pb S 09:13 0:00 -bash
Five processes are started here as well.
You should look into the documentation for LinuxThreads to get an
explanation for this behaviour:
[from the file FAQ.html of linuxthreads-0.71]
LinuxThreads follows the so-called "one-to-one" model: each thread is
actually a separate process in the kernel. The kernel scheduler takes
care of scheduling the threads, just like it schedules regular
processes. The threads are created with the Linux clone() system call,
which is a generalization of
fork() allowing the new process to share the memoryspace, file
descriptors, and signal handlers of the parent.
Regards,
Ole.
---------------------------------------------------------------
Ole Storm
The Institute of Applied Computer Science (IFAD)
Forskerparken 10, DK-5230 Odense M, Denmark
Phone: +45 6315 7134, Fax: +45 6593 2999, Email: storm@ifad.dk
WWW: http://www.ifad.dk
---------------------------------------------------------------