Scheduling Function Calls with Zero Allocation
#Channel #EscapeAnalysis #GUI #MainThread #Thread #Tracing #MemAllocAuthor(s): Changkun Ou
GUI programming in Go is a little bit tricky. The infamous issue
regarding interacting with legacy, GUI frameworks is that
most graphics related APIs must be called from the main thread.
The issue violates the concurrent nature of Go: A goroutine maybe
arbitrarily and randomly scheduled or rescheduled on different running
threads, i.e., the same piece of code will be called from different
threads over time, even without evolving the go
keyword.