Re: [go-nuts] Re: Goroutines vs OS threads

2016-06-22 Thread Tu Pham Anh
Thank you very much for your response, I think that at abstract level it is true. When we go into more detail, we will that GO optimize to have Routine context ( that some kind of Thread context), I think that at the conception level it some kind of yeild (conception ) to start to GORoutine. B

Re: [go-nuts] Re: Goroutines vs OS threads

2016-06-22 Thread Konstantin Khomoutov
On Wed, 22 Jun 2016 00:34:56 -0700 (PDT) tu.p...@zalora.com wrote: > I think that the idea of Goroutine come from > [https://en.wikipedia.org/wiki/Coroutine], This is hardly true: coroutines imply cooperative scheduling, where each coroutine explictly relinquishes control to some other coroutine

[go-nuts] Re: Goroutines vs OS threads

2016-06-22 Thread tu . pham
I think that the idea of Goroutine come from [https://en.wikipedia.org/wiki/Coroutine], the number of Goroutines are mapped to OS Threads. In my own opinion, Go maintain the Thread pool and task queue to dispatch the job. This pattern has been implemented in some modern JEE container. Hope that