[M3devel] user threads

Jay jay.krell at cornell.edu
Wed Apr 29 23:26:42 CEST 2009


> I think if possible "M3 user threads" should definitely be the
> default on FreeBSD4 and earlier, rather than "system user threads".

I'm tempted to add FreeBSD5 and possibly 6,7,8.
  Or I386_FREEBSD to imply>=5 (though it'd also work, slowly, for 4)
 
 
They would all use the same Unix/*.i3 files (not even copies), take the same code in Target.m3.
 
 
The only difference would be the default threading model in thread.quake and probably a line in the config file to use -lpthread vs. -lc_r. And the default archive/distribution names, if nothing else is done about them.
 
 
And MAYBE restore the global for pusheframe -- though that precludes I think leaving FreeBSD1-4 able to use their usermode pthreads.
That's a microptimization though, for a dying system(s).
 
 
On the other hand, there might not be more than one FreeBSD 4 user and he can just edit hits m3core/thread.quake??
Mika maybe you'll collect some pthread numbers on FreeBSD 5 soon and dump 4?
 
 
 
 - Jay


More information about the M3devel mailing list