[M3devel] dynamic chose between user/kernel threads?
Jay
jay.krell at cornell.edu
Fri Jan 2 19:44:48 CET 2009
Should the user/kernel thread chose be available:
On the command line to a Modula-3 executable (or even an executable where main is in another language, but which static or dynamic Modula-3 libs are used)?
Via a quake directive when building programs?
You know, imagine you have a bunch of Modula-3 programs and some but not all use a very large number of threads and benefit from userthreads.
Currently the chose is locked into m3core when it is built.
I understand (and anyone who likes the idea should understand) this is not easy to achieve.
Well, at the very least, it is a tedious transform of the code, not anything hard to understand, just not a small physical change. The choice also has to be communicated very early in "startup/initialization", since e.g. the garbage collector creates a thread for itself during "startup/initialization" -- letting Main's body call Scheduler.SetThreadImplementation(enum [UserThreads, KernelThreads]) would not likely work, and not be provided.
- Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090102/40dbee5f/attachment-0001.html>
More information about the M3devel
mailing list