...Chapter 5: CPU Scheduling Operating System Concepts – 8th Edition Silberschatz, Galvin and Gagne ©2009 Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Thread Scheduling Multiple-Processor Scheduling Operating Systems Examples Algorithm Evaluation Operating System Concepts – 8th Edition 5.2 Silberschatz, Galvin and Gagne ©2009 Objectives To introduce CPU scheduling, which is the basis for multiprogrammed operating systems To describe various CPU-scheduling algorithms To discuss evaluation criteria for selecting a CPU-scheduling algorithm for a particular system Operating System Concepts – 8th Edition 5.3 Silberschatz, Galvin and Gagne ©2009 Basic Concepts Maximum CPU utilization obtained with multiprogramming CPU–I/O Burst Cycle – Process execution consists of a cycle of CPU execution and I/O wait CPU burst distribution Operating System Concepts – 8th Edition 5.4 Silberschatz, Galvin and Gagne ©2009 Alternating Sequence of CPU and I/O Bursts Operating System Concepts – 8th Edition 5.5 Silberschatz, Galvin and Gagne ©2009 Histogram of CPU-burst Times Operating System Concepts – 8th Edition 5.6 Silberschatz, Galvin and Gagne ©2009 CPU Scheduler Selects from among the processes in ready queue, and allocates the CPU to one of them Queue may be ordered in various ways Switches from running to waiting state Switches from running...
Words: 3375 - Pages: 14
...Scheduling (when to do the job) is the process by which all resources needed for specific jobs are allocated, coordinated, and synchronized at the proper time and place, with necessary access, so that work can be executed with minimal delay and completed by the agreed upon date, within budget estimates. The schedule establishes when jobs will be done and what resources can best be applied to their performance. Resources include manpower, materials, tools and special equipment. Access refers to when the equipment will be prepared and accessible so that it can be worked on in safe (locked out/tagged out) condition, with necessary precautions taken, permits obtained, and any specialized documentation, drawings, or information in hand. Proper time relates to job start, duration of execution, and completion within the time frame agreed upon with the internal customer during the weekly coordination meeting. The Weekly Expectation Scheduling is the locus from which all maintenance activity is executed. Scheduling should be viewed as the “point” function and “marketing arm” of the system because it yields the earliest tangible results (often within weeks of start up). All individuals and groups perform better and accomplish more with clearly established, communicated and published expectations. When the maintenance function is managed without a weekly schedule, there are no specific expectations as to what is to be accomplished with the resources for which payroll checks will be...
Words: 2773 - Pages: 12
...CPU SCHEDULINGCPU scheduling in UNIX is designed to benefit interactive processes. Processes are given small CPU time slices by a priority algorithm that reduces to round-robin scheduling for CPU-bound jobs.The scheduler on UNIX system belongs to the general class of operating system schedulers known as round robin with multilevel feedback which means that the kernel allocates the CPU time to a process for small time slice, preempts a process that exceeds its time slice and feed it back into one of several priority queues. A process may need much iteration through the "feedback loop" before it finishes. When kernel does a context switch and restores the context of a process. The process resumes execution from the point where it had been suspended.Each process table entry contains a priority field. There is a process table for each process which contains a priority field for process scheduling. The priority of a process is lower if they have recently used the CPU and vice versa.The more CPU time a process accumulates, the lower (more positive) its priority becomes, and vice versa, so there is negative feedback in CPU scheduling and it is difficult for a single process to take all the CPU time. Process aging is employed to prevent starvation.Older UNIX systems used a 1-second quantum for the round- robin scheduling. 4.33SD reschedules processes every 0.1 second and recomputed priorities every second. The round-robin scheduling is accomplished by the -time-out mechanism, which tells...
Words: 2136 - Pages: 9
...FINAL YEAR PROJECT On DESIGNING A SIMULATOR TO IMPLEMENT A JOB SCHEDULER BASED ON DIFFERENT POPULAR CPU SCHEDULING ALGORITHMS Submitted as partial fulfillment for the award of BACHELOR OF TECHNOLOGY Session 2014-15 In Computer Science & Engineering Under the guidance of Mr.MrinmoySen By AnanyaDas(11/CS/15, ananyadas092@gmail.com, +919681851782) AnshumanMahanty(11/CS/23, anshumanmahanty1@gmail.com, +917501169824) SayaniBanerjee(11/CS/93, sayanibanerjee.1@gmail.com, +919046422003) HALDIA INSTITUTE OF TECHNOLOGY, HALDIA CERTIFICATE This is to certify that the final year project (CS792) on ‘Designing a Simulator implementing job scheduler based on different popular CPU scheduling algorithms’ has been completed and submitted successfully by the project members Ananya Das (11/CS/15), Anshuman Mahanty (11/CS/23) and Sayani Banerjee (11/CS/93). ------------------------- -------------------------------- --------------------------- Mr. Tarun Kumar Ghosh Mr. Sourav Mandal, Mr. Mrinmoy Sen Head of the Department, Convenor, Asst. Prof., Project Mentor, Asst. Prof., Computer Science & Engg. Project Evaluation Committee Department of CSE ACKNOWLEDGEMENTS We use this opportunity to express our gratitude to everyone who has supported us through the ongoing course of this final year project. The project owes its success not just...
Words: 6989 - Pages: 28
...49, 8657–8669 8657 Single-Stage Scheduling of Multiproduct Batch Plants: An Edible-Oil Deodorizer Case Study Songsong Liu,† Jose M. Pinto,‡ and Lazaros G. Papageorgiou*,† Centre for Process Systems Engineering, Department of Chemical Engineering, UniVersity College London, Torrington Place, London WC1E 7JE, U.K., and Process Systems R&D, Praxair Inc., 39 Old Ridgebury Rad, Danbury, Connecticut 06810 This article considers the short-term scheduling of a single-stage batch edible-oil deodorizer that can process multiple products in several product groups. Sequence-dependent changeovers occur when switching from one product group to another. Based on the incorporation of products into product groups, mixed integer linear programming (MILP) models are proposed for two scenarios, with and without backlogs. Then, the models are successfully applied to a real-world case with 70 product orders over a 128-h planning horizon. Compared with a literature model developed for a similar problem, the proposed models exhibit significantly better performance. 1. Introduction In the past decade, a large number of optimization models and approaches have been proposed for batch scheduling and planning. A number of reviews on the planning and scheduling of batch processes have been presented in the literature.1-6 Initially, discrete-time formulation models using the state-task network7 (STN) or resource-task network8 (RTN) were used for batch scheduling problems. Because discrete-time formulations...
Words: 7686 - Pages: 31
...Optimal Power Allocation and Scheduling for Two-Cell Capacity Maximization ∗ Dept. Anders Gjendemsjø∗, David Gesbert†, Geir E. Øien∗ , and Saad G. Kiani† of Electronics and Telecom., Norwegian Univ. of Science and Technology, 7491 Trondheim, Norway, Email: {gjendems, oien}@iet.ntnu.no † Mobile Communications Department, Institute Eur´ com, e 06560 Sophia-Antipolis, France, Email: {gesbert, kiani}@eurecom.fr maximize the network capacity for the case of individual link power constraints [8] and a sum power constraint [9]. In [10] it is assumed that each base station, when it transmits, transmits with maximum power Pmax . Which base stations that should be active at each time slot is decided according to a rate maximization objective. However, no proof of optimality is given for the on/off power allocation. In [11] transmit power allocation for a downlink two-user interference channel is studied under a sum transmit power constraint and the assumption of symmetric interference. The derived power allocation depends on the level of interference; when the inference is above a certain threshold the total power is allocated to the best user. For interference less than the threshold, the available power is divided among the two users according to a water-filling principle. However, due to the sum power constraint and symmetry of interference assumption these results are not readily applicable for two-cell power allocation, where it is more reasonable to assume individual power constraints...
Words: 4991 - Pages: 20
...interrupt or trap: 1) Upon modification of the program counter (PC) register, a nonexistent programed memory location, unimplemented in the microcontroller, is addressed. Answer: Event categorize as address error trap. 2) The stack pointer (SP) value exceeds the value of the SPLIM (Stack Pointer LIMit – set by the user) register, i.e. the stack is exceeded from the upper side. Answer: Event categorize as stack error trap. 3) User is trying to access the instruction y = t /0. Answer: Event categorize as arithmetic error trap 4) Ahmed is trying to open a document by double clicking on mouse. Answer: interrupt 5) Typing in MS word using keystroke. Answer: interrupt Q5: Select a mechanism for the given policies: 1) Process scheduling Sol: The process scheduler is the component of the operating system that is responsible for deciding whether the currently running process should continue running and, if not, which process should run next. There are four events that may occur where the scheduler needs to step in and make this decision: 1) The current process goes from the running to the waiting state because it issues an I/O request or some operating system request that cannot be satisfied immediately. 2) The current process terminates. 3) A timer interrupt causes the scheduler to run and decide that a process has run for its allotted interval of time and it is time to move it from the running to the ready state. 4) An I/O operation is complete for a process that requested...
Words: 1247 - Pages: 5
...A Distributed Joint Channel-Assignment, Scheduling and Routing Algorithm for Multi-Channel Ad Hoc Wireless Networks Xiaojun Lin and Shahzada Rasool School of Electrical and Computer Engineering, Purdue University West Lafayette, IN 47907, U.S.A. {linx,srasool}@ecn.purdue.edu Abstract— The capacity of ad hoc wireless networks can be substantially increased by equipping each network node with multiple radio interfaces that can operate on multiple non-overlapping channels. However, new scheduling, channelassignment, and routing algorithms are required to fully utilize the increased bandwidth in multi-channel multi-radio ad hoc networks. In this paper, we develop a fully distributed algorithm that jointly solves the channel-assignment, scheduling and routing problem. Our algorithm is an online algorithm, i.e., it does not require prior information on the offered load to the network, and can adapt automatically to the changes in the network topology and offered load. We show that our algorithm is provably efficient. That is, even compared with the optimal centralized and offline algorithm, our proposed distributed algorithm can achieve a provable fraction of the maximum system capacity. Further, the achievable fraction that we can guarantee is larger than that of some other comparable algorithms in the literature. I. I NTRODUCTION Multi-channel multi-radio ad hoc wireless networks have recently received a substantial amount of interest, especially under...
Words: 8961 - Pages: 36
...The Process of Line balancing: * Line balancing is essential for an effective product layout. * It is difficult to achieve equal work content to all stages in a process so therefore this will result in an imbalance hence a balancing loss. In the case of a line imbalance, extra resources need to be allocated to ensure the process is brought back to an efficient level of activity. With as high as possible the level of effectiveness for each stage in the process. * If a line is not properly balanced and therefore there is an imbalance the effectiveness of this is known as a balancing loss. The measure of a balancing loss is where the problem occurs of unequal allocation of work as part of the overall time needed to produce a product or service. * Perfect balancing would mean that work content is evenly allocated to each stage of the process. * The effectiveness of the balancing activity is measured by the balancing loss. * The longest stage in the process is called a bottleneck; it governs the flow of items through the whole process. Balancing Technique: * Various numbers of techniques available, must decide which is the best for the goal you are aiming for. Precedence Technique: * “This technique is a representation of the ordering of the elements which compose the total work content of the product or service” (Topic four product layout page 197) Worked Example: * Is the technique who the number of stages equal the total work content...
Words: 1560 - Pages: 7
...job in the ready queue if a higher Arrives priority job requires service. 1.) First Come First Served (FCFS) - executes jobs in their order of arrival (the job that comes first will get to the CPU first). - implemented easily using a first in first out (FIFO) queue. - FCFS is non-preemptive. - PROBLEM: the average turnaround times and waiting times are HIGH. 2.) Shortest Job First (SJF) – the job with the shortest estimated time is the next one to receive service. - cannot be implemented at the short term scheduling level since there is no way to know the length of the next CPU burst. - can be implemented at the long term scheduling level by asking users to estimate their job time limit. - can be preemptive or non-preemptive. - SJF gives the minimum average waiting time. - PROBLEM: long jobs may never get to execute. 3.) Priority Scheduling: the highest priority job is the next one to receive service. - Priority scheduling can be preemptive or non-preemptive. - PROBLEM: starvation – a low priority job may never be...
Words: 906 - Pages: 4
...Gulati, and Gupta. Various factors such as Educational Qualification, Work Experience, Socializing and many other factors have been taken into consideration. I hope the analysis I have done satisfies your concerns. Regards. Committee Member 2 Executive Summary : Mr. Ashok, who is in charge of the General Shift at Sparkling Glass Limited , is going to retire after few months. He has been responsible not only to do the basic routine work but also manage the Production Planning, Scheduling and Costing work. Therefore, the company needs to appoint someone on his behalf. Four people have taken into consideration for the post :1. 2. 3. 4. Khanna. Panjabi. Gupta. Gulati. The analysis talks about which persons fits best for the job on analyzing on Educational Qualification, Experience, Knowledge on Planning & Management , and Social Quality and Unions. After analyzing, Mr. Gupta seems fit to be promoted because he is qualified as a Glass technologist, manages the Production Planning, Costing and Scheduling work, had maintained a relationship with the workers which was adequate enough 3 TABLE OF CONTENT Sl. No. 1 2 3 4 5 6 7 Content Situation Analysis Problem Statement Options Available Criteria For Evaluation Evaluation of Options Recommendation Action Plan Page 5 6 6 6 7-8 8 8 4 1. Situation Analysis : The committee has examined all the four candidates resume. While evaluating them the members...
Words: 961 - Pages: 4
...بسم الله الرحمن الرحيم Name: -------------------------------- Group:---- Level:------- Major:------------- |المملكة العربية السعودية |[pic] |KINGDOM OF SAUDI ARABIA | |وزارة التعليم العالي | |Ministry of Higher Education | |جامعة الإمام محمد بن سعود الإسلامية | |Al-Imam Muhammad Ibn Saud Islamic University | |كلية علوم الحاسب والمعلومات | |College of Computer & Information Sciences | CS231: Operating Systems 1st Mid-Term Exam 2nd semester of 1430/1431 Exam Duration: 1:30H Marks: out of 20 I. Multiple choices [6 Marks, 1 for each]: 1. Which of the following is not shared by different threads of the same process? a. Global variables b. Program counter c. Open files d. None of the above 2. Which of the following process state transitions is NOT correct? a. RUNNIG to READY b. READY to RUNNIG c. WAITING to RUNNING d. WAITING to READY 3. Which of the following programming examples, multithreading provides better performance than a single-threaded solution? a. A web server that responds clients service requests b. A web browser that can process...
Words: 693 - Pages: 3
...|To: |Positrol Workholding | |From: | | |CC: | | |Date: | | |Re: |Job Process Scheduling | | | | Introduction The difference in the job process scheduling will be measured based on table 1 that was given. We are comparing the differences between First Come, First Served (FCFS), Shortest Operating Time (SOT) and Earliest Due Date (EDD) to find which sequencing rule may work the best. Highlights Lateness: The findings (SOT) had the best average of lateness (-3.8), but would still have 3 jobs come up short. On the other hand (EDD) had a slightly lower average at (-2.1), but had no jobs arrive late. With that being said both of these alternative had better averages than the (FCFS) method that positrol workholding is currently using. Jobs: To have the best efficiency and make sure the customers are happy, most jobs should be completed on time which is not the case for the methods (FCFS) and (SOT). They both would have 3 late jobs, whereas (EDD) method would have 0 late jobs, meaning they would all be completed on time. Flow Time: The last...
Words: 1183 - Pages: 5
...1. |Round robin scheduling is essentially the preemptive version of __________fsecond | | | | |1) |FIFO | |2) |Shortest job first | |3) |Shortest remaining | |4) |Longest time first | | |Correct Answer: FIFO [hide] | | | |Marks: 1 | | | | | | | | | | |2. |A page fault occurs | | | |1) |when the page is not in the memory | |2) |when the page is in the memory | |3) |when...
Words: 2016 - Pages: 9
...the operating system is the kernel. The kernel is a control program that functions in privileged state that allows all hardware instructions to be executed. It reacts to interrupts from external devices and to service requests and traps from processes. The kernel creates and terminates processes and responds to requests for service. Operating systems are resource managers. The main resource is computer hardware in the form of processors, storage, input/output devices, communication devices, and data. Operating system functions include: • Implementing the user interface. • Sharing hardware among users. • Allowing users to share data among themselves. • Preventing users from interfering with one another. • Scheduling resources among users. • Facilitating input/output. • Recovering from errors. • Accounting for resource usage. • Facilitating parallel operations. • Organizing data for secure and rapid access. • Handling network communications. Processes run applications, which are linked together with libraries that perform standard services. The kernel supports the processes by providing a path to the peripheral devices. The kernel responds to service...
Words: 2421 - Pages: 10