[go-nuts] Re: time.Sleep and sync.WaitGroup strange behavior

2017-01-21 Thread Rodolfo Azevedo
Thanks all, Peter Wang, I see the same thing, but Dave Cheney link explain, this is a fake time on playground. Thanks team :D Em sábado, 21 de janeiro de 2017 05:41:54 UTC-4, Dave Cheney escreveu: > > The playground fakes time, which may explain what you see. > https://blog.golang.org/playgro

[go-nuts] Re: time.Sleep and sync.WaitGroup strange behavior

2017-01-21 Thread Dave Cheney
The playground fakes time, which may explain what you see. https://blog.golang.org/playground -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubsc

[go-nuts] Re: time.Sleep and sync.WaitGroup strange behavior

2017-01-21 Thread Peter Wang
I run example B both playground and my linux(amd64) node, behavior is different At playground, function A, B, C run immediately, then program end immediately At my linux node, function A, B, C run immediately, but program end after wait 5 seconds I confuse why function A and C never sleep 5 se

[go-nuts] Re: time.Sleep and sync.WaitGroup strange behavior

2017-01-21 Thread Xu Lei
if you get into the fmt.println, you will see the output device is os.Stdout, any println call will direct output into it nodelay 在 2017年1月21日星期六 UTC+8上午11:34:09,Rodolfo Azevedo写道: > > Hi all, > > I have a question, interesting: > > Why the executes is diferente in these both situations? > > Exec