[Mono-list] Threading
Serge
serge@wildwestsoftware.com
Mon, 13 May 2002 19:22:17 +0300
> I find this behavior rather weird and scary since there is nothing in the
> generated IL code to show that csc injects an implicit call to Join. It
> seems that the runtime keeps the main thread alive while the worker thread
This behaviour is similar to JVM, it exists when all non-daemon threads terminate.
CSC has nothing to do with it (hence there should not be any explicit IL code to handle this),
it's a runtime engine property.
This is actually documented in ECMA docs for System.Threading,
see info on background/foreground threads.
Sergey