Advanced Java: Multi-threading Part 5 -- Thread Pools

preview_player
Показать описание
-------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Your accent and the music at the beginning makes me feel I am at the royal school of programming :)

don-jprs
Автор

The Beethoven 4th piano concerto is a nice way to begin and end the tutorials.  It sets a nice mood.  

fiandrhi
Автор

Fair point! I'm thinking back to when I was learning -- I used to spend a lot of time trying to understand stuff and feeling bewildered, but now if I encounter something I don't understand, I start by typing it out. In a way it's only the sum of possible usages that define what a thing is.

caveofprogramming
Автор

You are the best. I tried reading Concurrency Programming and it was very difficult to digest everything, but the way you explained is terrific. Thanks a lot!

sbhalkikar
Автор

I have, and shutdown does allow the executor to finish running threads. The thing is, it doesn't cause the main program to wait. So these two statements are not in conflict; calling shutdown will not stop your child processes; it's just that you have to tell your main thread if you want it to wait for them to finish before your program exits.

caveofprogramming
Автор

Control+SHIFT+O, omg 2 years in Eclipse and i didn't knew it . Thank you boss 👑

Your tutorials are pure gold .

One thing to mention is :
*NEVER leave the CATCH clause empty, either log or printStackTrace* ☺

goxrplus_studio
Автор

This video tells you everything you need to know :) ExecutorService is an interface that defines certain methods for handling thread pools. But really it's more important to use it (like in the video) than to know what it is.

caveofprogramming
Автор

Thanks John Purcell for these important tutorials .... Very helpful for me ... Learned much about multi-threading ..

cannibalimran
Автор

@mikesca1980 Really glad you like them. Don't worry, there's more to come ...

caveofprogramming
Автор

You are a life saver. Explaining such complex concepts in such short time. God bless you

mustafasadir
Автор

No, it pauses the main thread until either all the tasks have finished, or the timeout period has elapsed, whichever comes first.

caveofprogramming
Автор

Hi John : You tutorials are really valuable.. Keep up the good work

visheshkumar
Автор

Hi there, there's no special thing you have to do to enable it; it just works like that out the box. If it doesn't work for you, you might just need to download the latest Eclipse and make sure you've got a recent JDK.

caveofprogramming
Автор

Very nice tutorial! Can't wait to see your other tutorials. I'll checkout your website

midnighteh
Автор

your "t" and "s" are so sharp man. while trying to hear your lowww sound that "s" and "t" are killing me.

trgtrg
Автор

thanks a lot for these tutorials ... god bless you

persistencej
Автор

Hey thanks a lot for posting. I've used the concepts you showed in the first 4 videos to do a concurrent prime numbers finder for a multicore programming class.

amizan
Автор

Mate, I just sped up my application by 50% using ExecutorService / threads...
Thanks for taking the time to shoot these videos!!!

daniel
Автор

Beautiful explanation - like always.
To the point, but enough detail to get the hang of it.

Shabazza
Автор

It is a collection of threads which are re-used. Whenever a thread becomes free, it can be re-used to do something else.

TheQLF