Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

650 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ants 协程池框架详细注释版

ants 协程池框架的详细注释,建议关注:

  • 生产者消费者模型。
  • golang 中的 goroutine 是不可持有的,那么如何池化一个 goroutine?
  • sync 库的使用:锁、条件变量、原子操作;
  • 锁粒度的把控。
  • 如何实现一个自旋锁,为什么不用 golang 的原生互斥锁?

ps:注释过程中参考了作者潘少的博客

About

A copy of ants with complete code annotation

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages