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:
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
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.
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.
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?
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?
+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.
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.
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.
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