Ask Your Question
4

If the node thread crashes, why does the electron child process keep running?

asked 2022-09-19 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-17 06:00:00 +0000

bukephalos gravatar image

The electron child process and the node thread are two separate processes that communicate with each other through IPC (Inter-Process Communication). If the node thread crashes, it will not affect the electron child process directly because they are isolated processes. However, if the node thread was responsible for important functionality in the electron app, the app may not function properly even though the electron child process is still running.

Additionally, electron applications are built on top of the Chromium browser, which manages processes like renderers and plugins in separate processes as a security measure. This means that even if the node thread crashes, the Electron main process and renderer processes will keep running because they are managed by the browser.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-09-19 11:00:00 +0000

Seen: 9 times

Last updated: Dec 17 '22