Brief demo of golang channels I used to present on TDC Transformation 2021.
Shows how deadlocks happen if no routine reads from Channel after write.
Shows how deadlocks happen if reading from Channel is never reached in the same routine that writes to it
Shows how deadlocks are resolved when different routines communicate through channels
Runs sequential program.
Optional:
$(NUMBER_OF_REQS)
: Number of requests to be performed
Runs concurrent program.
Optional:
$(NUMBER_OF_REQS)
: Number of requests to be performed
This commands will measure time of sequential and concurrent executions, respectively. They also accept the same variable $(NUMBER_OF_REQS)
.