[lkml]   [2001]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Threads and the LDT (Intel-specific)?
From said:
> I'm trying to do something a bit unorthodox: I want to share the
> address space between threads, but I want a certain region of the
> address space to be writeable only for a particular thread -- for all
> other threads this region is read-only.

UML does this in a somewhat portable (but strange) way. Threads don't share
address spaces, as far as the OS is concerned, but the areas where the
executable is mapped in are copied to a file, those areas are mapped out, and
the files mapped shared in their place. This happens once, in the first
thread, and all subsequent threads get the executable mapped shared
automatically, even though they are separate processes and separate address
spaces from the point of view of the kernel.

So, once this is set up, a thread just makes an area read-write (or readonly)
and that mapping is private.


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.764 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site