Synchronizing 2 processes using interprocess synchronizations objects - Mutex or AutoResetEvent

前端 未结 2 933
灰色年华
灰色年华 2020-12-06 05:33

Consider the following scenario: I\'m running my application which, during its execution, has to run another process and only after that 2nd process finishes inner specific

2条回答
  •  猫巷女王i
    2020-12-06 05:51

    i would consider **AutoResetEvent **. they can be used for interprocess communcation and they are relativley fast. see the following link: Threads for c#

    read the Creating a Cross-Process EventWaitHandle section...

提交回复
热议问题