News for hackers. Stuff that matters.
Re:IPC in Rust – A Ping Pong Comparison by tialaramex on Wednesday June 19, 2024 @05:26AM (#40726484)
In practice it's not desirable to go without an explicit wake feature, we need some way to know that now it's likely to succeed. The mechanism needn't be 100% reliable but "Always try again" is essentially exactly as useless as blocking.
Re:IPC in Rust – A Ping Pong Comparison by duped on Wednesday June 19, 2024 @10:27AM (#40728647)
No it's not, that's the whole point of using polling.
Re:IPC in Rust – A Ping Pong Comparison by loeg on Wednesday June 19, 2024 @11:16AM (#40729080)
I work on a widely deployed (~11,000 servers and growing) piece of software that does not use any OS sleep/wake primitive for our MPSC queues -- just polling. It works really well with the right overall design.