the reader is directed to the file descriptor locking in Solaris, the source code for which can be found by searching the Internet for “flist_grow.
ACM Queue - Real-world Concurrency: Chances are you won’t actually have to write multithreaded code. But if you do, some key principles will help you master this “black art.” - そのうち読む、かも。