You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the following program splits lines inappropriately (see attached file
containing sample output).
6g darwin 71a9509287b2+ tip
package main
import "log"
var c = make(chan bool)
func main() {
go printer("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
go printer("yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy")
<-c
<-c
}
func printer(s string) {
for i := 0; i < 10000; i++ {
log.Print(s)
}
c <- true
}
Attachments:
The text was updated successfully, but these errors were encountered: