78 karma · joined Aug 5, 2022 (4y ago) · 11 submissions
comment 2y ago · link · parent
comment 2y ago · link · parent
I personally ran into this Using the built in com.sun webserver, with a virtual thread executor. My VPS only has two CPUs which means the FJP that virtual threads run on only have 2 active threads at a time. I ran into this hang when some of the connection hung, blocking any further requests from being processed.
comment 3y ago · link · parent
comment 3y ago · link · parent
5.
The Treacherous Optimization(ridiculousfish.com ↗)
2 points · by synthetigram · 3y ago · discuss
comment 3y ago · link · parent
Another case is an array based queue. It can be implemented with head+tail pointers, or size+offset. However, there will always be an ambiguity with either, because two words of memory aren't enough to represent all possible states of the queue.
comment 3y ago · link · parent
comment 4y ago · link · parent