Skip to content

你想要的,我却不能够给你我全部,我能给的,却又不是你想要拥有的。

Notifications You must be signed in to change notification settings

RiKaCC/Accumulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Golang的并发机制和CSP并发模型

要点:
并发模型通过Goroutine和channel来实现
通过通信来共享内存,可以不用加锁
goroutine
MPG模型:
M->可以理解为线程,真正干活的对象
P->G和M的调度对象,可以理解为CPU
G->Goroutine
2. Golang中常用的并发模型
channel
sync包的WaitGroupe
Context上下文(用来处理多个goroutine之间共享数据,以及管理多个goroutine )
3.Golang GC过程
栈扫描(开始时STW)
第一次标记(并发)
第二次标记(STW)
清除(并发)

STW: Stop The World

About

你想要的,我却不能够给你我全部,我能给的,却又不是你想要拥有的。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages