diff options
author | Russ Cox <rsc@golang.org> | 2008-08-04 16:43:49 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-08-04 16:43:49 -0700 |
commit | 058f49d45414069884317b918b8506db8708d31e (patch) | |
tree | 9bbd3f46848f10a65f701fb12cbddadf5e59b114 /src/pkg/integer.go | |
parent | 87ca539278c51e941e67d8d0d05eeae64fdc64e1 (diff) | |
download | golang-058f49d45414069884317b918b8506db8708d31e.tar.gz |
first cut at multithreading. works on Linux.
* kick off new os procs (machs) as needed
* add sys·sleep for testing
* add Lock, Rendez
* properly lock mal, sys·newproc, scheduler
* linux syscall arg #4 is in R10, not CX
* chans are not multithread-safe yet
* multithreading disabled by default;
set $gomaxprocs=2 (or 1000) to turn it on
This should build on OS X but may not.
Rob and I will fix soon after submitting.
TBR=r
OCL=13784
CL=13842
Diffstat (limited to 'src/pkg/integer.go')
0 files changed, 0 insertions, 0 deletions