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
this always runs into a deadlock with the current approach.
// samples/chan.sahlfunsendvals(c: chan<int>, count: int) {
let i =0while i < count {
c <- i
i = i +1
}
}
funrecvvals(c: chan<int>, count: int) {
let i =0while i < count {
print(<-c, "\n")
i = i +1
}
}
funmain() {
let i =0while i <100 {
let a = make(chan<int>)
sahl sendvals(a, 10000)
sahl recvvals(a, 10000)
i = i +1
}
}
actual go like instead of pthreads
The text was updated successfully, but these errors were encountered: