microsoft / microsoft/node-windows-mutex

Can this be used for interprocess lock?

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
35
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Hello I need to have a lock between multiple processes.
Is it possible to use node-windows-mutex to accomplish that?
If so, could you give me a code example?

I tried to create a new Mutex object with a specific name in 2 processes simultaneously and it seemed that the code wasn't blocked in any way.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by reading how node-windows-mutex exposes the Windows CreateMutex API, then reproduce the two-process scenario with the same mutex name. Done means documenting whether interprocess locking is supported and providing a working Node.js example if it is.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, node.js
Domain
operating-systems
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.