<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
6.0.11 and v7.0.0-beta.6</li>
<li><strong>Operating System:</strong><br>
MacOs Mojave Version 10.14.5</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Hi, I need to create a multi-threaded application. I used two threads options, but both don't work.<br>
First option is <code class="notranslate">worker_threads</code> <a href="https://nodejs.org/api/worker_threads.html" rel="nofollow">https://nodejs.org/api/worker_threads.html</a><br>
Second option is web workers <a href="https://electronjs.org/docs/tutorial/multithreading" rel="nofollow">https://electronjs.org/docs/tutorial/multithreading</a></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When i used <code class="notranslate">worker_threads</code> i got this error: <code class="notranslate">Uncaught Error: The V8 platform used by this instance of Node does not support creating Workers</code><br>
When i used <code class="notranslate">web workers</code> I ran into a threads creation limit. I can create max 240-243 threads, but when i add 1 more thread - it crash. I have free 7 GB RAM, but it crush anyway. Btw, in activity monitor it'll show x2 threads count, than i created. If i created 240 threads - it'll show 480+ threads in activity monitor</p>
<h3 dir="auto">To Reproduce</h3>
<ol dir="auto">
<li>For reproduce <code class="notranslate">worker_threads</code> error:<br>
<code class="notranslate"> const { Worker } = require("worker_threads") new Worker("./src/workers/profile.js")</code> // need provide a path to file</li>
<li>For reproduce <code class="notranslate">web workers</code> error:<br>
<code class="notranslate">for( let i = 0 ; i &lt; 250 ; i ++ ) {   new Worker("./src/workers/profile.js") // need provide a path to file } // 240 = no crush, 250 will crush</code></li>
</ol>
<h3 dir="auto">Screenshots</h3>
<ol dir="auto">
<li><code class="notranslate">worker_threads</code></li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24946599/66699551-935a8500-ecf0-11e9-884e-fc589e1e7d15.png"><img src="https://user-images.githubusercontent.com/24946599/66699551-935a8500-ecf0-11e9-884e-fc589e1e7d15.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li><code class="notranslate">Web workers</code></li>
</ol>
<p dir="auto">This screenshot shows that were created x2 threads, than I actually create (as I described above).  Were created 240 threads, but in fact 486 is displayed<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24946599/66699513-378ffc00-ecf0-11e9-8c63-4760b39160c1.png"><img src="https://user-images.githubusercontent.com/24946599/66699513-378ffc00-ecf0-11e9-8c63-4760b39160c1.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This screenshot shows what happens when I add one thread, after creating 240 web workers<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24946599/66699533-6b6b2180-ecf0-11e9-9b93-5e505664cf66.png"><img src="https://user-images.githubusercontent.com/24946599/66699533-6b6b2180-ecf0-11e9-9b93-5e505664cf66.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">If i can provide more info for you - tell me it please !</p>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
v5.0.2</li>
<li><strong>Operating System:</strong><br>
Windows 10</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">On app ready start nodejs worker which consoles string.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">App crash immediately after run</p>
<h3 dir="auto">To Reproduce</h3>
<ul dir="auto">
<li>git clone <a href="https://github.com/BorysTyminski/electron-issue.git">https://github.com/BorysTyminski/electron-issue.git</a></li>
<li>cd electron-issue</li>
<li>npm install</li>
<li>npm run start</li>
</ul>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I used electron-forge to quick build app.</p>