Fool's computer tricks "iodine problem"

in #computer6 years ago

Fool's Computer Cleverness - 4: "Iodine Problem"
Statutory warning: This is not for computer users.
Well, did I tell you that I used to walk on the streets to see a beautiful girl or to see a beautiful girl walking on the road often stumbling? This is one of my fault. I can not do two things together at the same time. Beautiful looking and walking in the street - two different jobs, is not it? Can the two tasks be done together? Others can do it, but brothers, I can not. A friend of mine knows what? Say, "lack of iodine"

If you know, you might be surprised, not only me, but also in the computer "lack of iodine". What do you mean to say That is, that the processor that does all the work on a computer, such a basic processor can not work more than once. Can not run more than one program. If I can see my daughter and walking in the street, "Iodine deficiency" can be, but is not this feature of the computer? You are probably beginning to think that "I'm going to run 8-10 programs together, do not you?" You may want to show the picture below as proof.image.png
Do you remember what computer program works with Instructions created in 0 and 1? There is a set instruction behind every program (Microsoft Word, Mozilla Firefox, Messenger etc). When Microsoft Word goes, actually its instructions continue one after another, and when Firefox goes, its instructions continue. To run a program, the instructions for that program must first be stored in memory. Some registers are required to save the data needed to run the instructions in memory. Examples of what this required data might be - from where in the memory the instruction started, what instructions are going on at this time, if the instructions are 'added', which are the numbers being added and the sum or where to save, where is the next instruction Etc. etc. What I was talking about, this register is a kind of memory, but a little bit different from what we know as RAM (RAM) - Random Access Memory. Data can be saved in the registry very fast, and the data can be easily read from here. Because of this speed, the processor (computer in other words) can work so quickly. However, in order to get this speed, each registrar has to be specially created for a special purpose. Also, the number of registers is very limited, otherwise it will take time to find out when to get data from a register. All the computers have to use the same register as the program itself.

Do not miss something, a scary example comes to mind. The bathroom that you have in your home is specially designed for stool-urine management, is not it? Surely not ready to eat and sleep. 😛 And to use it - when you need someone in your family to go to the toilet and come back to peace, is not it? Excuse me, register is like some kind of toilet, it is made for special work, and when it comes to the program, the program uses the register. As you do not go to use the closet together as two people, so many programs can not use that register at the same time. So a processor can not run more than one program at the same time. More precisely, the processor can not run more than one instruction at the same time. Here's the main thing of "iodine problems"

You are still thinking - "I can see that the computer is running multiple programs together, I have given an example above the picture, then where is iodine problem?" Just stand up, answer me. Before that, in Microsoft Word (or Open Office or any other text editor), I would have thought of writing. When I am writing this writing in the ward, write a line and think about how you can easily explain my words when writing the next line. I'm thinking - the previous line is correct? When I'm thinking about these things, I'm not writing anything, then actually Microsoft has no work to do, the program is seen only on the monitor. Although the monitor is busy for my program at this time, the registers are unemployed but at the same time. There is no need to put so much expert registrars? If it was not good to run another program in this unemployed time? Suppose, if the download continued from YouTube, at this time, would not it be good? Yes, the computer actually does this job. Some time to run a program and run another program. And this is called task-switching or context switching. The time of task switching, ie, from one program to another program, the computer is saving the data stored in the registry for the program that is now running the program, then the other program continues. When you return to the previous program, the data stored in the memory before it is stored in the registry, and then continue the program. Thus, it is so fast to get one program from one program to another, that you do not get it - when you are working in a program, the computer is leaving your program from another program! This is how the computer has the ability to do multiple tasks together, which is called multitasking.

When a programmer creates a program, then he does not know which other program will run at that time. Who does the switching program from one program to another program? It does our operating system (eg Windows, Linux). The operating system has all the information about which programs are running. It helps to decide how to use different resources of the computer and register between different programs and threads (thread key things a little later). Task Scheduling in the Kitabibi language. This scheduling can be as simple as continuing to do 1 milliseconds per task (called round-robin scheduling), and may also be intelligent according to your strategy. For example, suppose you want your useful and favorite programs to work faster, in no way obstructed. That is to say, programs .are scheduling according to priority (or prorality) (which is prority-based scheduling); when you're listening to the song, you surely do not like the tunes that are broken; Want to make sure that while listening to music, parents are in computer, you can do whatever you do in every 0.1 seconds

Sort:  

the bathroom that you have in your home is specially designed for stool-urine management, is not it?