Skip to main content

Posts

Showing posts from July, 2023

Go Routines

Before Going to understand Go Routines, Need to understand about multithread programming.  Every Go Program will execute with main thread call main function.  Go Routines will help to create multithreading in Golang, Write go in front of any function will act as goroutine.  Example:  Normal Function:  func temp() {          print ("Hello World")     } func main() {     temp()  } Go Routine Example func main() {     go temp()  } GoRoutine will create a new thread along with main thread.