go language features

1, sophisticated garbage collection

  Memory management is carried out by a packaged memory management mechanism of gc, gc thread will automatically scan the object is not currently referenced, and releases the object's memory, compared to C / C ++ do not have to consider the issue of release of memory

  Automatic memory recovery, developers no longer need to manage memory

  Developers to focus on business implementation, reduce the burden of mental

  Just need new memory allocation, no release

2, concurrent natural (cpu utilization characteristics polynuclear)

  From the linguistic level support concurrency, very simple

  goroute, lightweight threads, created thousands of goroute possible (can run to tens of thousands no problem, coroutines)

  CSP (Communicating Sequential Process) model implementation based on

 

  

  

Guess you like

Origin www.cnblogs.com/laogao123/p/10945603.html