[lkml]   [2001]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Re: Process creating]
On Wed, Jun 27, 2001 at 12:35:13AM -0600, Blesson Paul wrote:
> 1: P1 and P2 have different physical areas of memory. This is how
> protection works.
> 2: Why do they need to share the same memory? You can have your second
> process
> communicate with your first process through IPC.
> 3: Linux supports threading if you include the thread library, and use the
> appropriate
> threading process calls.
> Another thing you can do is have a common space on the hard drive. It's not
> as fast as RAM,
> but it's one solution.

As to 1 (and 3), if you clone the processes (using the __clone - advanced
version of fork), you can specify what the processes should share. Including
memory. Thus you can also have threads (that share everything but stack) even
without a thread library (libpthread actualy does just that, but it has some
conveniece stuff like locks).

As of 2, avoid using ipc, especialy the sysv one - it's rather kind
of crap (IMHO).

Jan 'Bulb' Hudec <>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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