[Mono-dev] Mapping Mono-Threads to Linux-Threads
Robert Jordan
robertj at gmx.net
Fri Jan 8 10:05:36 EST 2010
On 08.01.2010 15:24, Martin Däumler wrote:
> Hy,
>
> I'm using Mono 2.6.1 on a standard x86 computer running on
> Linux 2.6.30. I built Mono from the sources without problems.
>
> I want to know how Mono and its CRL, respectively,
> map threads and processes created from the CLI code
> to Linux threads.
Threads are mapped 1:1.
>
> The Mono-project online documentation's "ThreadBeginnersGuide"
> tells me something about a mono-process, a Application Domain
> and some threads ... but that is quity fuzzy.
>
> Executing a simple "Hello, World", the Linux command "ps" lists
> one Mono process containing 2 (Linux operating system) threads.
> Executing a simple programm containing 2 threads causes
> one Mono process and 4 operating system threads. So, does
> one thread within a Mono application cause 2 Linux operating
> system threads to be executed and if yes, why?
You're seeing the GC thread and the thread pool thread
on top on your own 2 threads.
Robert
More information about the Mono-devel-list
mailing list