lab004

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 3 Imported by: 0

README

读写锁

注意

  • 当写锁阻塞时,新的读锁是无法申请的,这可以有效防止写者饥饿。
  • 读写锁简单来说就是可以由任意数量的读者同时使用,或者只由一个写者使用的锁。(可以有多个同时读)

运行结果

Imgur

参考资料

http://zablog.me/2017/09/27/go_sync/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL