Wednesday, February 19, 2020

CPU scheduling Essay Example | Topics and Well Written Essays - 2500 words

CPU scheduling - Essay Example Sometimes people speak of pseudoparallelism in this context, to contrast it with the true hardware parallelism of multiprocessor systems (which have two or more CPUs sharing the same physical memory). Keeping track of multiple, parallel activities is hard for people to do. Therefore, operating system designers over the years have evolved a conceptual model (sequential processes) that makes parallelism easier to deal with. (Tanenbaum, 2006). The difference between a process and a program is subtle, but crucial. An analogy may help make this point clearer. Consider a culinary-minded computer scientist who is baking a birthday cake for his daughter. He has a birthday cake recipe and a kitchen well stocked with the necessary input: flour, eggs, sugar, extract of vanilla, and so on. In this analogy, the recipe is the program (i.e., an algorithm expressed in some suitable notation), the computer scientist is the processor (CPU), and the cake ingredients are the input data. The process is the activity consisting of our baker reading the recipe, fetching the ingredients, and baking the cake. The key idea here is that a process is an activity of some kind. It has a program, input, output, and a state. A single processor may be shared among several processes, with some scheduling algorithm being used to determine when to stop work on one process and service a different one. Operating systems n Creation of a process: Operating systems need some way to make sure all the necessary processes exist. In very simple systems, or in systems designed for running only a single application (e.g., controlling a device in real time), it may be possible to have all the processes that will ever be needed be present when the system comes up. In general-purpose systems, however, some way is needed to create and terminate processes as needed during operation. There are four events that cause process to be created: 1. System initialization 2. Execution of a process creation system call by an existing process. 3. A user request to create a new process. 4. Initiation of a batch job. When an operating system is booted, often several processes are created. Some of these are foreground processes, that is, processes that interact with (human) users and perform work for them. Others are background processes, which are not associated with particular users, but instead have some specific function. For example, a background process may be designed to accept incoming requests for web pages hosted on that machine, waking up when a request arrives to service the request. Processes that stay in the background to handle some activity such as web pages, printing, and so on are called daemons. Large systems commonly have dozens of them. During the running of multiple processes, the processes compete among themselves. When more than one process is in the ready state and there is only one CPU available, the operating system must decide which process to run first. The part of the operating system that makes the choice is called the scheduler; the algorithm it uses is called the scheduling algorithm. Introduction to scheduling: Back in the old days of batch systems with input in the form of card images on a magnetic tape, the scheduling algorithm was simple: just run the next job on the tape. With timesharing systems, the scheduling algorithm became more complex, because there were generally multiple users waiting for service. There

Tuesday, February 4, 2020

Book Memo Essay Example | Topics and Well Written Essays - 250 words

Book Memo - Essay Example Immigrants usually migrate from place to place until they get to the place that is most suitable to them, while settlers would remain fixed and would try to make things better for themselves in the region they reside. Undocumented immigrants come to the United States and some other major nations of the world in search of better life considering the fact that these countries are more developed than their native country (Kivisto & Faist). The immigrants would first be separated from their loved ones and this is usually difficult for them, considering the fact that they had a sort of emotional attachment to these people. Transition is the experience that the immigrants have when they enter and become a member of a particular society. Incorporation is the phase that the immigrant identifies with the new community they migrate to and this does not mean they have to accept the values of this community. And this is just like the rite of passage as it takes place when someone makes a reasona ble progress by changing from one status to another (Kivisto & Faist). One question this that should be asked is that: what are the reasons that some immigrants, both the documented and the undocumented ones chose to reside permanently in the United States of America and some other major nations. Work Cited Kivisto, Peter, & Faist, Thomas. Beyond a Border: The Causes and Consequences of Contemporary Immigration.