I'm going to use CGO to call c++ in my project and do some performance tests. So I do research on cgo, and find that calling a C function from Go code won't block other goroutines from running. I view the cgocall code (runtime/cgocall.go, is there any official doc?), it seems that calling a C function from Go code in cgo would lock g to m and call entersyscall (dose it means new a thread for running ?). If in go code I make lots of C function calling, will the program new a thread for each calling?
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.