HomeНаука и техникаRelated VideosMore From: Android Authority

Processes and threads - Gary explains

2488 ratings | 49321 views
Read more: http://goo.gl/luvc0h You are probably accustomed to the idea that your smartphone can run more than one app at a time. But the question is, how does Android manage to do it? Connect with me to ask questions about processes and threads in the forums: http://www.androidauthority.com/community/forums/team-android-authority.533/ Download the AndroidAuthority App: https://play.google.com/store/apps/details?id=com.androidauthority.app Subscribe to our YouTube channel: http://www.youtube.com/subscription_center?add_user=androidauthority ---------------------------------------------------- Stay connected to Android Authority: - http://www.androidauthority.com - http://google.com/+androidauthority - http://facebook.com/androidauthority/ - http://twitter.com/androidauth/ - http://instagram.com/androidauthority/ Follow the Team: Josh Vergara: https://plus.google.com/+JoshuaVergara Joe Hindy: https://plus.google.com/+JosephHindy Lanh Nguyen: https://plus.google.com/+LanhNguyenFilms Jayce Broda: https://plus.google.com/+JayceBroda Gary Sims: https://plus.google.com/+GarySims
Html code for embedding videos on your blog
Text Comments (151)
mr vrctt (9 days ago)
You explained MultiTasking great. But For people not good at English, you could have spoke a little slower.
Mahesh Juja (22 days ago)
Awesome explanation!
VanMedia (28 days ago)
it's amazing how he can explain so much in 10 minutes...gives you such a great ooverview
hitlermugabetashtwin (1 month ago)
I'd like to lock YOUR thread, woof!
Aiendhrew D (2 months ago)
Very Good explanation - from Java Developer
Shubham Parmar (2 months ago)
Amazing man u explained it in better manner. Thank you sir👍
Best one but your voice is sometimes low , sometimes loud in every video , need a constant voice volume
Márcio Fernandes (2 months ago)
The video , but the background music is very distracting
Charles Yeo (2 months ago)
Gary your content is the reason why I'm subbed to android authority
rajesh vuddanda (3 months ago)
Ur the best bro
waROxa (3 months ago)
Gary thank you so much! You explain things so easily and I love your videos! Thank youu!!
Jonas Steinberg (4 months ago)
This video should have been titled "scheduling" or something like that cuz you didn't *really* get into processes via threads.
Ahmed Muhammad (4 months ago)
Perfect--- Loved it
Leo (5 months ago)
how kernel/os to schedule Processes vs Scheduling threads?
Jonathan Copeland (6 months ago)
Thank you so much!
Mo'men El-Zeiny (6 months ago)
That's pretty much the best threading video on YouTube
angelfishgod (9 months ago)
Very informative and well produced video. Thank you for producing the high quality content, keep it up!
MajSolo (9 months ago)
Code Locking and Data Locking. Code Locking is bad. Example "you have a farm" with a barn and a house. Code locking is like say "walking" is on method described by code that you execute to walk. Then there is code for climbing sitting eating driving etc. You can have one big lock on the farm or you can use more locks on each method. But only one person can walk at the time, and only one person can eat at the time. Data locking has no lock on the code but locks on the data instead. So any number of persons can enter the farm, walk, sit, climb, eat, whatever they like when it comes to what method/routine they can use. Data locking is that only one person can hold teaspoon number 5. That is the only limitation. Except for that, with data locking, you can have thousands of people running around on the farm. If you want to do MT then go all the way do data locking instead of "poor mans MT" with code locking. This should have gotten through to people by now and no one should mension code locking ever again.
achi bhai (9 months ago)
Mr.Gary i want to know what exactly a process looks like in OS , how its protection and security is done ? do you have videos for that ?
grassy climer (9 months ago)
15 people think its magic and are offended by your explanation.
Muntis Grube (10 months ago)
Gary keeps mixing code and data. Multiple threads can run the same peace of code simultaneously if they are not using the same data. For example if you have code that calculates square root of input value. There is no reason to lock all other threads that need square root calculation for other numbers. On other hand there can be data that can be modified from different positions in code and then the locking is needed.
R1S8K (10 months ago)
That's amazing thank you very much I'm very happy to get the basics of Linux Kernel. But, isn't all other OS work the same technique, for memory management, logical container and the other OS software's management parts?
Kunal Kankheria (10 months ago)
Great work Gary Keep it up
Ch Chand Tanha (10 months ago)
Gary is most intelligent person I've seen on the Internet.
surendra pal Singh (11 months ago)
Awesome video :) :)
Gary your videos are excellent! i hope you can deliver us more information about this topic later... Meanwhile i will continue the research by myselft, Thank you!
William Hart (1 year ago)
nice work as usual sir , do you have a explains video on big little I am waiting for a proper explanation of it
Jagannath Belel (1 year ago)
nice explanation
Cesar. (1 year ago)
i want a shirt like yours 😢 where can i get one from ?
Taino Royal (1 year ago)
Very informative . Thanks for doing this vid
Santiago Leiras (1 year ago)
Very well explained, I loved it
Jaxibs Bob (1 year ago)
Another good demystification; I hope you will do a follow up video on processing core vs processor.
Hady Rashwan (1 year ago)
reminds me of introduction to operating systems course back in the day
Hady Rashwan (1 year ago)
reminds me of introduction to operating systems course back in the day
Sergio Adino (1 year ago)
Update my access acct no. Linux corporate access acct no.Buyer update share asap respond,ThanksSergio C. Adino,6328325143/42
Erin Webb (1 year ago)
no better explanation. :P
Sean McBee (1 year ago)
Superior work Gary. Thank you for doing these. They are very informative and well done. I really dig these videos!
Binaya Shrestha (1 year ago)
thanks a lot, gary
Peter Lewis (1 year ago)
Thank you very much Gary
krishna prasad (1 year ago)
amazing Gary thx alot for your videos your videos are the highlight of android authority
Gabriel Perez (1 year ago)
thank you for the video
Ben Morningstar (1 year ago)
as always, great work gary! very informative. Thanks!
Martin Olminkhof (1 year ago)
mutexes ;D
Gary Sims (1 year ago)
+Martin Olminkhof And don't forget semaphores :-)
Robert Cohen (1 year ago)
Like number 1k !!!!
SAIDEEP DICHOLKAR (1 year ago)
+Gary Sims Your videos are simply Awesome ! 😁👍👍👍
Asif wagan (1 year ago)
hi gary, Good work :)
Greg Zeng (1 year ago)
Do other operating systems work like Linux? On Windows, PROCESS LASSO (3rd party freeware) allows me to view priorities of threads, processes, memory, etc. These can be changed as I wish. Can Linux do this?
Gary Sims (1 year ago)
+Greg Zeng Yes it can. There are GUIs that come with most desktop distributions and for the command line you can use things like ps or top.
StrikeFreedom1920 (1 year ago)
Hey Gary, regarding your vids explaining stuff, keep 'em coming =)
Andree K (1 year ago)
I'm bookmarking your vids for my coming college years. Keep em coming. They're great.
RRainerss (1 year ago)
Cleanest comment section on the whole YouTube... so far. Cheers! Great video btw
Harshid (1 month ago)
yermumgaylol
RRainerss (1 year ago)
+Santiago Leiras Probably...
Santiago Leiras (1 year ago)
+Rainers Strads that's because all the ignorant people are watching some Iphone vs Samsung crash test
scott johnson (1 year ago)
I've really been loving these explanations. What about covering topics such as fork, exec, and socket?
scott johnson (1 year ago)
+Gary Sims I kind of figured that, but thought it was worth a shot. Thanks for the consideration regardless. I look forward to your next explanation ☺
Gary Sims (1 year ago)
+scott johnson Yeah, those are good topics, but this is still Android Authority and this is about as far left-field as I can go and still remain in the general orbit of Android!
Mr.tech guy (1 year ago)
I never miss garry's video
Jatin Madan (1 year ago)
Thanks to Gary I can show off in my computer class 😎
Stalin Jesudasan (1 year ago)
Hi Gary, Great video as always. I have a doubt. Can the same process be run on multiple cores simultaneously? If yes, how to identify which app is programmed to use multiple cores.
Gary Sims (1 year ago)
+Stalin Jesudasan Multiple threads from the same process can be run on different cores.
Shafiq Ayach (1 year ago)
gary your videos are awesome and so informing. keep up the good work!
Mazhar (1 year ago)
Love you videos Gary!Keep it up
Deadlight Labyrinth (1 year ago)
Loving watching your vids and learning. Thank you for them.
Alexander Björck (1 year ago)
Fisk
Ytremz (1 year ago)
*Spot the Difference:* 1) 0:54 2) 4:18
BobEckert56 (1 year ago)
Gary, I'm a colleague in your generation, and you are good Sir!!
Wolfferoni (1 year ago)
I really like these videos, very informative even to people who don't know that much about tech
Steef_1 (1 year ago)
Linux master race. Ubuntu 4 lyfe
Lazaro (1 year ago)
FIRST
nuwan premarathne (1 year ago)
Great work Gary, your videos are so helpful for us to understand all these concepts.Keep up the good work!
Samruddh Shah (1 year ago)
thanks for making informative video.
TheDiceAreLoaded (1 year ago)
Do I need to jailbreak my phone to do the Linux Kernals?
Ghadafi Muhamad (1 year ago)
indonesia subtitles please
Pratosh Alurkar (1 year ago)
Amazing review.. Open your own channel
patthemaniacful (1 year ago)
Great Job
Bruno Brandão (1 year ago)
great video!!!
Jeff Hulett (1 year ago)
Nice work on this video, but shouldn't you're background photo be Buckingham palace instead of San Francisco?
Imran Haque (1 year ago)
+Gary Sims also what happened to the DW poster?
Gary Sims (1 year ago)
+Jeff Hulett LOL
Youglemyvideos1 (1 year ago)
is he a terminator? the more he processes this on his brain the more he blinks. lol
LunarMagicGaming (1 year ago)
I love this series!
Gonçalo de Almeida (1 year ago)
Great stuff!
Salvatore Celestino (1 year ago)
Very intresting video, thx Gary!
Raul Serrano (1 year ago)
is this same for PC?
+Raul Serrano Yes, essentially. But the specific locks etc. varies based on the os.
Zakaria Zaki (1 year ago)
great work as usual
Nic H (1 year ago)
The difference between Hardcore Android fans and hardcore iOS fans... we care to know this stuff, they don't really
Nic H (1 year ago)
+DarkPhoneixZ by "they don't really" sort of implies that compared to android fans, there are less who enjoy this stuff on apples side
DarkPhoneixZ (1 year ago)
how do you know they dont? Dont just assume things. I mean there are developers out there you know.
ejiryu strider (1 year ago)
gary please educate the people regarding ram on android, is 6gb necesary on an android phone?
Roman Sattler (1 year ago)
+ejiryu strider More free ram can reduce garbage collector up time which improves overall performance. The optimum is usually said to be at about 25% usage.
thanks Gary ....
Lurker (1 year ago)
Such a good video, much better than that sponsor guy.
Imran Haque (1 year ago)
+Lurker do u know about domain.com?
Lurker (1 year ago)
+Ayush Rao I didn't want to name him, but yes.
Ayush Rao (1 year ago)
+Lurker I think u meant Jayce Right???
Lurker (1 year ago)
+itseman2 He's not involved with this channel now is he.
itseman2 (1 year ago)
Who, Linus? Lool
Austin N. (1 year ago)
Love your videos Gary! God bless ya!
Tim BC (1 year ago)
On windows under the performance tab and then cpu there is like what 1000+ threads, is that the same. (no not talking about cpu hyperthreading :P)
Tim BC (1 year ago)
+Gary Sims Thanks for explaining!
Gary Sims (1 year ago)
+Tim Brandt Corstius Yes that is right, so on my PC I have about 200 process and some 4000 threads. A deeper look shows me that a few processes use just one thread, but some use lots. For example my anti-virus is using 152 threads, Skype is using 84 threads, Dropbox 83 threads and so on.
Rich Hurd (1 year ago)
Thanks Gary, very informative. You sir, are awesome!
AmaymonF (1 year ago)
Gary, your videos are amazing. Actually the best of this channel. I think you should create your own channel to teach the viewers some computer science.
Jeroenert88 (1 year ago)
+AmaymonF That's an excellent idea! Good explaining.
Adam Baugh (1 year ago)
+AmaymonF Gary does have his own channel and a website if you check his Google+ page they are both on it.However for some strange reason he not done many videos to explain all this kind of stuff.
Hubert Allen (1 year ago)
I agree as well
Mr j (1 year ago)
+AmaymonF AGREE. i would definitly subsribe
Arun nalluri (1 year ago)
agree
TuxKey (1 year ago)
Basic but good ;-) good job
Parker John (1 year ago)
I like this series !
Mates1500 (1 year ago)
Well, I probably didn't gain anything from this video, but it's a little unfair, as I've already worked with programming threads before, so that's to be expected. Either way, this video explains it briefly, but it's short enough that it might be interesting even to a person that doesn't exactly know how programming works in the first place. Well done, Gary.
James Russo (1 year ago)
Gary the man!
RAD Tech (1 year ago)
Gary man, you are killing it with this content - simply sublime work man! keep it up 😀
Johanneslol11 (1 year ago)
Great video to bad most programs especially on windows use very little multithreading and offloading it to use multicore en hyper-treading. On Linux it is already a lot better, but still far from perfect. :) there is a lot of gain to be made here, and then finally the many cores in the consumer version of amd processors have there use. :) currently it is only useful for servers and videorendering.
DarkPhoneixZ (1 year ago)
+New American Fishkeeper just because games utilize 2-4 cores doesnt necessarily mean it will run better than a lower clocked octa core cpu. Even in that case performance would be negligible.
yolo man (1 year ago)
+New American Fishkeeper never said that
+yolo man Then why do you say that an 8 core is better for gaming?
yolo man (1 year ago)
+New American Fishkeeper i know that but....
+yolo man BF4 will run better on a 4ghz quad core processor than on a 3.8ghz octa core CPU since most games only use 2-4 cores.
Kyle Ruggles (1 year ago)
Great explanation for the regular folk Gary :D just like a pc :)
Juwhamu (1 year ago)
I feel so informed after watching his videos -w-
swat37 (1 year ago)
Virgin girl* Just edited it
Bojidar Martinov (1 year ago)
+The Everyicated Gamer lol
swat37 (1 year ago)
+TheNekoJuju That's what that virgin girl said!
Dawid Szyszko (1 year ago)
more of videos lukę this
Milan Stankovic (1 year ago)
Your past few videos literally explain what I have been studying in electrical engineering and computer science for the last 2 years, just on a simplified,basic, way :) I guess you also finished something similar :D So anyone who wants to learn more about stuff like this that is the type of college you should apply for :D
Ralph Manzano (1 year ago)
are there tutorials anywhere for these topics?
acighe (1 year ago)
love your videos Gary
TALK MOTO (1 year ago)
300 viewer lol
Hugo Costa (1 year ago)
You wrote "progam" instead of "program"
Gary Sims (1 year ago)
+Hugo Costa Ah! Sorry about that.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.