From: Daniel B. <da...@te...> - 2002-12-12 04:03:43
|
It doesn't, admittedly, do much useful yet, but the experimental thread branch (0.7.9.54.thread.11, as soon as I get to checking it in) has just created a second thread which toggles the value of a global variable in a manner visible to the calling thread http://ww.telent.net/diary/2002/12/#12.13933 for the session transcript Remaining still to do: almost everything, but mostly locking. Allocation is in theory parallelisable for anything up to two pages, but thereafter needs locks adding in large parts of gencgc. GC itself, of course, must stop all threads (at least any of them that want to allocate) and presently doesn't, and the rest of the sbcl code hasn't even been _looked at_ (well, not by me anyway) for thread safety. Expect to hit problems if you want, for example, threads that do any kind of IO But I thought this was a landmark worth sharing anyway :-) -dan -- http://www.cliki.net/ - Link farm for free CL-on-Unix resources |