Synchronization between two processes in C#.?

前端 未结 3 1857
北恋
北恋 2021-01-24 01:49

Is there any way so that we can synchronize two independent processes? Like if they are sharing a resource, I would like to sync them.

I am using C#.

3条回答
  •  花落未央
    2021-01-24 02:16

    Mutexes will give you cross process sync.

    You could also implement an API in WCF using named pipes, which could give you a nice synchronisation in OO code without system calls and it fully unit testable. Named pipes would also give you not just sync but communication as well.

提交回复
热议问题