Operating Systems Assignment #5 Of Chapter 4 Eighth Edition of Operating System Concepts by Avi Silberschatz Peter Baer Galvin & Greg Gagne 2009 4.1 Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution Answer: (1) Any kind of sequential program is not a good candidate to be threaded. An example of this is a program that calculates an individual tax return. (2) Another example is a "shell" program such as
Premium Computer program Operating system Central processing unit
its lifetime. Operating system takes care of selecting the processes from these queues in some fashion. Selecting process is done by the the appropriate scheduler. Types of scheduling: Short - term (or) CPU Scheduler Medium – term Long – term (or) Job Scheduler Short – Term Scheduler: Short term scheduler selects the processes that are ready to execute and allocates CPU to one of them. Medium – Term Scheduler: Medium term scheduler is introduced by some operating systems such as time sharing
Premium Time Term
Authors: Damatac‚ Mara Olivia S. Gabriel‚ Ma. Gessa M. Lagiwid‚ Julie May C. Runez‚ Alfonso Tyrell Joseph B. Keywords: Mobile Apps IDE(Intergrated Development Environment) Cloud Sensors Introduction Programming is the process of developing logic codes to solve a particular problem. Programmed software and/or application are supposed to make the task easier for the user. It is used for developing applications found in our computing machines. It is used in almost all the technologies
Premium Personal digital assistant Smartphone Mobile Web
single-processor system? * Umumnya‚ setiap situasi di mana pemungutan dihindari menggunakan multithreading‚ yang memungkinkan thread untuk memblokir daripada berkutat di beberapa kondisi. 4.4 Which of the following components of program state are shared across threads in a multithreaded process? * Heap memory dan Global variables 4.5 Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single-processor system?
Premium Central processing unit Computer program Operating system
What are the two differences between user-level and kernel-level threads? Under what circumstances is one type is better than other? Answer: 1- User-level threads are unknown by the kernel‚ whereas the kernel is aware of kernel threads. 2- On systems using either M: 1 or M: N mapping‚ user threads are scheduled by the thread library and the kernel schedules kernel threads. 3- Kernel threads need not be associated with a process whereas every user thread belongs to a process. Kernel threads are
Premium Scheduling
closed thus allowing a network administrator to reduce the vulnerability of its network. 2. Which application is used for Step 2 in the hacking process to perform a vulnerability assessment scan? Nessus. 3. What must you obtain before you begin the ethical hacking process or penetration test on a live production network‚ even before performing the reconnaissance step? One must obtain a signed authorization form showing exactly what kind of test you are authorized to perform. 4. What
Premium Computer security Security Operating system
Chapter 7 Exercise #3 – Given a disk pack with 10 platters yielding 18 recordable surfaces… A = Rotational speed = 10ms B = Transfer rate = 0.1ms/track C = Density per track = 19‚000 bytes D = Number of records to be store = 200‚000 records E = Size of each record = 160 bytes F = Block size = 10 logical records G = Number of tracks per surface = 500 a) Number of blocks per track: (C) / (E*F) 19‚000 / (160*10) 19‚000 / 1600 11.875 11 BLOCKS b) Waste per track: C – (E*F*11)
Free Track and field athletics Gramophone record
and can be done by users who only know DOS commands. An example of a well known batch file is the autoexec.bat‚ which is a simple batch file loaded each time the computer is loaded on MS-DOS and early Windows computers. This batch file contained all the necessary commands and programs used to run MS-DOS and Windows each time the computer booted. Use your VMware accounts to do this lab sheet because you will need to save your work. Next page please. Exercise 1 – Create your first batch file
Premium File system
waiting time and turn around time of each process . ALGORITHM: 1) start 2) read the number of process into n 3) for i=0 to n step1 do a) read the burst time of process into b[i] b) check if b[i] is less than 0 i. write invalid input ii. goto step 11 c) tt = tt+b[i] 4) for i=0 to n do step1 i. for j=1 to n step1 do if b[i]>b[j] t=b[j] b[i]=b[j] b[j]=t 5) assign 0 to w[0] 6) for i=1 to n do w[i]=w[i-1]+b[i] avg=avg+w[i] 7) tt=tt+avg 8) avg=avg/n 9) tt=tt/n 10) Print the average
Premium Scheduling Programming language Computer program
Review Questions 4.1 Table 3.5 lists typical elements found in a process control block for an unthreaded OS. Of these‚ which should belong to a thread control block and which should belong to a Process control block for a multithreaded system? Identifiers will appear in both thread and process control blocks‚ because both need to be identified. Processor State Information should belongs to process control block. Kernel will only interact with process not threads. Process Control Information:
Premium Scheduling Computer program