Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    From context, I am guessing you are referring to kernel calls or something similar that would be used in the context of writing a piece of software and not about something a regular user of the OS would use, is that right? Please edit your question and clarify that, bearing in mind that most of us here have no knowledge of Windows so we have no idea if this WaitForMultipleObjects is a library, a kernel call, a graphical program or what. Commented Jan 9, 2022 at 18:26
  • 2
    I don't know what WaitForMultipleObjects is specifically, but that sounds similar to select or poll. Commented Jan 9, 2022 at 18:38
  • I added a brief summary of WaitForMultipleObjects in description. Select and poll might be alternatives although I've only seen their use with sockets. I have since seen System V might have more but little used cross-process synchronization mechanisms, but I don't know anything about that. In my case, I needed to control access to shared hardware, and flock with a dummy file seemed the only choice, and adding a failsafe timeout seemed problematic. Windows has nice synchronization objects and functions that seem more appropriate than dummy files. Commented Jan 10, 2022 at 21:53
  • 3
    Maybe ask a concrete question: What are you trying to do, and what was the outcome? Commented Jan 11, 2022 at 7:02
  • Boost libraries for Linux might provide better synchronization objects but I suspect they are layered on top of other kernel functions not designed for those purposes. Use of select might be a possibility but it seems not designed (or named) for general synchronization. I look and find things like stackoverflow.com/questions/15651857/… System D is one effort to update Linux I am aware of; I was wondering of there are others attempting to directly support higher-level scalable kernel functions - for complex synchronization in this case. Commented Jan 12, 2022 at 1:31