Multithreading in Javascript Using Worker Threads

preview_player
Показать описание
Find out how to using Worker Threads in Javascript to multi-thread your app and get amazing performance boosts. This is a practical video, we walk through taking traditional single threaded code and porting it to multithreading.

Hope you folks enjoy this!
👉 If you enjoy this video, please like it and share it.
👉 Don't forget to subscribe to this channel for more updates.

#javascript #worker-threads #multithreading
Рекомендации по теме
Комментарии
Автор

Also, hear that newest node can share memory between workers for true multi-threading. You should do a video on that!

boot-strapper
Автор

incredibly funny. You have screen charisma. In the old days they would do a screen test.

dc
Автор

I really did not understand much of this, but was it cool to program to use all the cores! Thanks for a great video. Like your style.

mortenlund
Автор

Finally I understood the concept, thanks to this video!

DPTR
Автор

Thank you so much for the video. Awesome explanation. It really helps me to get idea

ltjqrhcpext
Автор

Great video and a ton of value! Thanks man

judostuff
Автор

Have an nodejs interview in tomorrow then this video appears in my newfeeds! Thanks alot

stewiedong
Автор

didnt get the answer I was searching for but got the answer I needed. thank you :)

alexandreblais
Автор

So far my experience with workers has been "Aw yeah, so much CPU usage!" and then "Aw crap, that's a lot of memory usage"

NathanFranckGameDev
Автор

I wonder why using 16x the processors only halved the execution time? Do you have any idea why that might be?

ryanodd
Автор

"Bring in the jimp" - I see what you did there ;)

mattshaile
Автор

@Jack Herrington What's the difference if we can spread multiple containers now a day. Do we have to choose one over the other or both technology can be used together?

sj
Автор

Hi! Would this be a solution in order to improve execution time if I use workings threads to do multiple edits on the same picture? In my case I have to add multiple other pictures to different regions of the original picture (as if it were a canvas). There is no pixel in common that could cause a reading-writing concurrent error with any of the threads. It would be nice if I could add all those pictures into the original picture with different threads.

arialdev
Автор

Nice vid, should the worker_thread be exited/closed once they’ve finished?

DutchThought
Автор

do worker threads share memory between each other, or you always have to send a serialized message between threads ? just wondering if you can have two threads access the same object via closure to do some sort of map reduce operation. Or is that not allow?

keenheat
Автор

I tried the single solution with 75mbs of jpgs and it took 80 sec for 1464 images to be processed. The multi threaded one crashed with heap our of memory.

dzilbxp
Автор

Do you create as many threads as files? Shouldn't be there a thread pool? Anyway good vid

barney
Автор

Nice explanation! So it's 16 core laptop?

husniddinqurbonboyev
Автор

Am just like newbie, pls tell me is worker thread like threading is it like spawning new threads and works exactly like a thread It works like thread and it is thread but it is not called Am quite confused!!

Rei-mg
Автор

you shouldn't use Node.js for CPU intensive work like crunching terabyte of data. just saying.. and I think you already know this. please use Java or Python instead that's what they were built for. Hope this helps. Python learning curve is not so steep after all for people coming from JS background. right feel at home with Python or TypeSscript for Java. love your channel Jack keep it up.

tomjones
visit shbcf.ru