This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Go patch committed: Multiplex goroutines onto OS threads


On 12/14/2011 05:04 PM, Ian Lance Taylor wrote:
>  The OpenBSD thread runtime.  It's similar to old LinuxThreads, but
>  with only 1 kernel thread per process IIUC.
Oh, hmmm, that might be a problem.

The other Go compiler seems to use the rfork system call to create new
threads, passing RFPROC | RFTHREAD | RFMEM | RFNOWAIT.

Yeah, found it now... it implements basically its own thread runtime. But it only has spinlocks right now.


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]