GO-vatar series: Lightweight thread

https://miro.medium.com/max/11000/1*aSPCO92xpe9Z564-ExeaAw.png

What is thread?

A thread is a path of execution within a process. A process can contain multiple threads. — https://www.geeksforgeeks.org/thread-in-operating-system/

How to?

To create a Goroutines, we have to add go when call a function.

https://play.golang.org/p/w0_ORKLLREA
https://play.golang.org/p/ZRAw7b71le1
Print result
https://miro.medium.com/max/5216/1*dD8qcmhpjUlKxZ1GHmX1AQ.png

mpermperpisang official Medium account..MperMperPisang World on Youtube

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store