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

Processes and threads - Gary explains

2691 ratings | 55985 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 (154)
AndayRubin (1 month ago)
So, is a process the same as a program?
Kaique SkyFalL (1 month ago)
This is a Nice Channel. Keep doing this Nice job.
Liam Jones (1 month ago)
Fantastic video, by far the best explained on youtube
mr vrctt (3 months ago)
You explained MultiTasking great. But For people not good at English, you could have spoke a little slower.
Mahesh Juja (3 months ago)
Awesome explanation!
VanMedia (3 months ago)
it's amazing how he can explain so much in 10 minutes...gives you such a great ooverview
hitlermugabetashtwin (4 months ago)
I'd like to lock YOUR thread, woof!
Aiendhrew D (5 months ago)
Very Good explanation - from Java Developer
Shubham Parmar (5 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 (5 months ago)
The video , but the background music is very distracting
Charles Yeo (5 months ago)
Gary your content is the reason why I'm subbed to android authority
rajesh vuddanda (6 months ago)
Ur the best bro
Gary thank you so much! You explain things so easily and I love your videos! Thank youu!!
Jonas Steinberg (7 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 (7 months ago)
Perfect--- Loved it
Leo (8 months ago)
how kernel/os to schedule Processes vs Scheduling threads?
Jonathan Copeland (9 months ago)
Thank you so much!
Mo'men El-Zeiny (9 months ago)
That's pretty much the best threading video on YouTube
angelfishgod (11 months ago)
Very informative and well produced video. Thank you for producing the high quality content, keep it up!
MajSolo (1 year 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 (1 year 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 (1 year ago)
15 people think its magic and are offended by your explanation.
Muntis Grube (1 year 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 (1 year 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 (1 year ago)
Great work Gary Keep it up
Ch Chand Tanha (1 year ago)
Gary is most intelligent person I've seen on the Internet.
surendra pal Singh (1 year 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. (2 years ago)
i want a shirt like yours 😢 where can i get one from ?
Taino Royal (2 years ago)
Very informative . Thanks for doing this vid
Santiago Leiras (2 years ago)
Very well explained, I loved it
Jaxibs Bob (2 years ago)
Another good demystification; I hope you will do a follow up video on processing core vs processor.
Hady Rashwan (2 years ago)
reminds me of introduction to operating systems course back in the day
Hady Rashwan (2 years ago)
reminds me of introduction to operating systems course back in the day
Sergio Adino (2 years ago)
Update my access acct no. Linux corporate access acct no.Buyer update share asap respond,ThanksSergio C. Adino,6328325143/42
Erin Webb (2 years ago)
no better explanation. :P
Sean McBee (2 years ago)
Superior work Gary. Thank you for doing these. They are very informative and well done. I really dig these videos!
Binaya Shrestha (2 years ago)
thanks a lot, gary
Peter Lewis (2 years ago)
Thank you very much Gary
krishna prasad (2 years ago)
amazing Gary thx alot for your videos your videos are the highlight of android authority
Gabriel Perez (2 years ago)
thank you for the video
Ben Morningstar (2 years ago)
as always, great work gary! very informative. Thanks!
Martin Olminkhof (2 years ago)
mutexes ;D
Gary Sims (2 years ago)
+Martin Olminkhof And don't forget semaphores :-)
Robert Cohen (2 years ago)
Like number 1k !!!!
+Gary Sims Your videos are simply Awesome ! 😁👍👍👍
Asif wagan (2 years ago)
hi gary, Good work :)
Greg Zeng (2 years 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 (2 years 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 (2 years ago)
Hey Gary, regarding your vids explaining stuff, keep 'em coming =)
Andree K (2 years ago)
I'm bookmarking your vids for my coming college years. Keep em coming. They're great.
RRainerss (2 years ago)
Cleanest comment section on the whole YouTube... so far. Cheers! Great video btw
Harshid (4 months ago)
RRainerss (2 years ago)
+Santiago Leiras Probably...
Santiago Leiras (2 years ago)
+Rainers Strads that's because all the ignorant people are watching some Iphone vs Samsung crash test
scott johnson (2 years ago)
I've really been loving these explanations. What about covering topics such as fork, exec, and socket?
scott johnson (2 years 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 (2 years 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 (2 years ago)
I never miss garry's video
Jatin Madan (2 years ago)
Thanks to Gary I can show off in my computer class 😎
Stalin Jesudasan (2 years 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 (2 years ago)
+Stalin Jesudasan Multiple threads from the same process can be run on different cores.
Shafiq Ayach (2 years ago)
gary your videos are awesome and so informing. keep up the good work!
Mazhar (2 years ago)
Love you videos Gary!Keep it up
Deadlight Labyrinth (2 years ago)
Loving watching your vids and learning. Thank you for them.
Alexander Björck (2 years ago)
Ytremz (2 years ago)
*Spot the Difference:* 1) 0:54 2) 4:18
BobEckert56 (2 years ago)
Gary, I'm a colleague in your generation, and you are good Sir!!
Wolfferoni (2 years ago)
I really like these videos, very informative even to people who don't know that much about tech
Steef_1 (2 years ago)
Linux master race. Ubuntu 4 lyfe
MENESTREL SND (2 years ago)
nuwan premarathne (2 years ago)
Great work Gary, your videos are so helpful for us to understand all these concepts.Keep up the good work!
Samruddh Shah (2 years ago)
thanks for making informative video.
TheDiceAreLoaded (2 years ago)
Do I need to jailbreak my phone to do the Linux Kernals?
Ghadafi Muhamad (2 years ago)
indonesia subtitles please
Pratosh Alurkar (2 years ago)
Amazing review.. Open your own channel
patthemaniacful (2 years ago)
Great Job
Bruno Brandão (2 years ago)
great video!!!
Jeff Hulett (2 years ago)
Nice work on this video, but shouldn't you're background photo be Buckingham palace instead of San Francisco?
Imran Haque (2 years ago)
+Gary Sims also what happened to the DW poster?
Gary Sims (2 years ago)
+Jeff Hulett LOL
Youglemyvideos1 (2 years ago)
is he a terminator? the more he processes this on his brain the more he blinks. lol
LunarMagicGaming (2 years ago)
I love this series!
Gonçalo de Almeida (2 years ago)
Great stuff!
Salvatore Celestino (2 years ago)
Very intresting video, thx Gary!
Raul Serrano (2 years ago)
is this same for PC?
+Raul Serrano Yes, essentially. But the specific locks etc. varies based on the os.
Zakaria Zaki (2 years ago)
great work as usual
Nic H (2 years ago)
The difference between Hardcore Android fans and hardcore iOS fans... we care to know this stuff, they don't really
Nic H (2 years 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 (2 years ago)
how do you know they dont? Dont just assume things. I mean there are developers out there you know.
ejiryu strider (2 years ago)
gary please educate the people regarding ram on android, is 6gb necesary on an android phone?
Roman Sattler (2 years 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.
HD Android Gameplay.tv (2 years ago)
thanks Gary ....
Lurker (2 years ago)
Such a good video, much better than that sponsor guy.
Imran Haque (2 years ago)
+Lurker do u know about domain.com?
Lurker (2 years ago)
+Ayush Rao I didn't want to name him, but yes.
Ayush Rao (2 years ago)
+Lurker I think u meant Jayce Right???
Lurker (2 years ago)
+itseman2 He's not involved with this channel now is he.
itseman2 (2 years ago)
Who, Linus? Lool
Austin N. (2 years ago)
Love your videos Gary! God bless ya!
Tim BC (2 years 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 (2 years ago)
+Gary Sims Thanks for explaining!
Gary Sims (2 years 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 (2 years ago)
Thanks Gary, very informative. You sir, are awesome!
AmaymonF (2 years 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 (2 years ago)
+AmaymonF That's an excellent idea! Good explaining.
Adam Baugh (2 years 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 (2 years ago)
I agree as well
Mr j (2 years ago)
+AmaymonF AGREE. i would definitly subsribe
Arun nalluri (2 years ago)
TuxKey (2 years ago)
Basic but good ;-) good job
Parker John (2 years ago)
I like this series !
Mates1500 (2 years 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 (2 years ago)
Gary the man!
RAD Tech (2 years ago)
Gary man, you are killing it with this content - simply sublime work man! keep it up 😀
Johanneslol11 (2 years 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 (2 years 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 (2 years ago)
+New American Fishkeeper never said that
+yolo man Then why do you say that an 8 core is better for gaming?
yolo man (2 years 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 (2 years ago)
Great explanation for the regular folk Gary :D just like a pc :)
Juwhamu (2 years 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 (2 years ago)
more of videos lukę this
Milan Stankovic (2 years 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 (2 years ago)
are there tutorials anywhere for these topics?

Would you like to comment?

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