Unbeschränkte Kanäle
With bounded (synchronous) channels, send()
can block the current thread:
Speaker Notes
This slide should take about 8 minutes.
- Calling
send()
will block the current thread until there is space in the channel for the new message. The thread can be blocked indefinitely if there is nobody who reads from the channel. - Like unbounded channels, a call to
send()
will abort with an error if the channel is closed. - A bounded channel with a size of zero is called a "rendezvous channel". Every send will block the current thread until another thread calls
recv()
.