Skip to content
Advertisement

Proper implementation of an inter process communication (IPC)

Is the following a proper implementation of an inter-process communication?

JavaScript

It seems to be working but I’m wondering if there could be a race condition leading to hanging. One constraint is that both processes need to be started independently and in any order.

Advertisement

Answer

Some stress tests showed no problem so the implementation seems OK if somebody wants to reuse the code.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement