Question

In: Computer Science

1) Calculate the cache hit ratio assuming that the total number of requests is 2,056 and...

1) Calculate the cache hit ratio assuming that the total number of requests is 2,056 and 647 of those requests are found in the cache.

2) Draw a figure of dead lock with three processes and three resources.

3) the operating system provides an interface between application programs and the computer hardware. Discuss the process of the execution of any application program on the hardware using all managers of the operating system.

4) The operating system offers a graphical vs command line user interface to interact with an electronic device. Compare the graphical user interface and the command line interface in terms of speed, remote access, resource utilization, multitasking, and control

Solutions

Expert Solution

1. Cache Hit Ration = (No. of hits / (No. misses + No. hits))*100 = (647 / 2056)*100 = 31.46%

2.

3. When an application is to be executed, it will place a request to the operating system through the appropriate system call, and then the operating system will load that application in the memory, while loading the mode bit will be '0', which represents that it is a kernel process. Once loaded, the mode bit will become '1' (user process). As a resource manager the operating system manages the system resources like processor time (CPU cycles), Memory, IO Devices and Files.

As a process manager the Operating System will provide a process id for the newly created process and it will be represented through a PCB (Process Control Block) which includes process_id, Program Counter, Stack and General Purpose Registers. Also, it decides the priority of this process and how much slice of CPU cycle it should be given during each round of execution. It also makes a entry for this process in the process table.

As a memory manager the Operating System allocates memory for the newly created process which includes text segment (to store th actual .exe file of the process), data segment (to store the global variables), stack (to store temporary variables - function params, return address and local variables) and Head (for dynamic memory allocation).

As a resource manager Operating Systems allocates IO devices and Files required for the newly created process.

During its lifetime the process may be in differnt states like new, ready (waiting for CPU), waiting (for IO Operation), running (assigned to CPU) and terminate. Once the process terminate, the operating system will remove its entry from the process table.

4. An ordinary user would feel that graphical interface is more convenient and faster than commandline interface, but an experienced user (like network administrator etc...) will fell much comfartable with commandline interface and can do things fastly from commandline interface than GUI.

Remote communication is possible through GUI and also through Command line interface. More sophisticated tasks can be done through commandline interface but considerable knowledge and experience is required.

effective Resource utilization and Multitasking and controls on files are also possible through commandline interface but its for experience users.


Related Solutions

Your cache has a hit time of 1 clock cycle and a miss time of 100...
Your cache has a hit time of 1 clock cycle and a miss time of 100 clock cycles. If the CPI of your processor equals 1.3 with perfect caches (the cache always hits), then what is the CPI if your cache hits 71% of the time? Fill in the blank and show your work. ( ) Your cache has a miss penalty of 50 clock cycles and a hit time of 1 clock cycle. If your processor has a CPI...
Prepare the period's financial statements and calculate the following primary financial ratio: Debt Ratio Total Liabilities...
Prepare the period's financial statements and calculate the following primary financial ratio: Debt Ratio Total Liabilities / Total Assets Current Ratio Current Assets / Current Liabilities Working Capital Current Assets - Current Liabilities Assets-to-Equity Ratio Total Assets / Owner's Equity Debt-to-Equity Ratio Total Liabilities / Owner's Equity Nelson Adams and Marina Fedorova started Local Souvenir Inc., on January 1. They were two owners of the corporation. They decided to produce food and drink containers in a birch bark crafts technique...
1. ____ is the ratio of total loan amount by the total value of the property....
1. ____ is the ratio of total loan amount by the total value of the property. Select one: a. housing-to-income-ratio b. loan-to-value ratio c. debt-to-income ratio d. liability-to-market value ratio 2. The five C s of credit stands for: Select one: a. capacity, character, conditions, collateral, and capital. b. capability, cooperation, creativity, collateral, and capital. c. conditions, competence, capital, conditions, and capacity. d. cooperation, capacity, collateral, creativity, and conditions. 3. Non-depository institutions that lend funds to individuals to finance consumer...
Produce the following for each problem: Assuming an Alpha = 0.05, calculate the number of replications...
Produce the following for each problem: Assuming an Alpha = 0.05, calculate the number of replications necessary for each factor (including interactions), to have a type II error less or equal to 0.1. Evaluate results and provide conclusion(s). Scan the solutions to these problems. Depth of Cut (in) Feed Rate (in/min) 0.15 0.18 0.20 0.25  74  79  82  99 0.20  64  68  88 104  60  73  92  96  92  98  99 104 0.25  86 104 108 110  88  88  95  ...
1)Company XYZ had total credit sales of $1,235,000. Calculate bad debt expense assuming the company estimates...
1)Company XYZ had total credit sales of $1,235,000. Calculate bad debt expense assuming the company estimates bad debt at 1% of sales made during the year (using the income statement approach). Record the journal entry to record the bad debt estimation. Accounts Debit Credit                            [ Select ]                    ["Bad Debt Expense", "Accounts Receivable", "Allowance for Doubtful Accounts", "Cash"]                        ...
Computer archieture 1. Assume that the cache size is 512kB, and each cache line is 128...
Computer archieture 1. Assume that the cache size is 512kB, and each cache line is 128 Bytes. If it’s a 4-way associative cache, how many sets are there? If it’s a 2-way associative cache, how many sets are there? Let’s assume the cache is initially empty, and LRU policy is used for cache line replacement. If the following memory blocks are accessed: Mem-block # 7, 1031, 2055, 4103, 1031, 7, 2055, 3079, 1031, 3079 What is the cache hit/miss rate...
Using XYZ Company's income statement and balance sheet below calculate: Current ratio Quick ratio Total debt...
Using XYZ Company's income statement and balance sheet below calculate: Current ratio Quick ratio Total debt to total assets Operating margin Profit margin Return on assets P/E ratio Financial leverage ROE Use the DuPont equation and solve for ROE. 20XX Assets Cash $ 85,632 Accounts receivable 878,000 Inventories 1,716,480 Total current assets $ 2,680,112 Gross fixed assets 1,197,160 Less accumulated depreciation 380,120 Net fixed assets $ 817,040 Total assets $ 3,497,152 Liabilities and Equity Accounts payable $ 436,800 Accruals 408,000...
a. For the years 2005–2009, calculate Boeing’s: i. Total liabilities-to-equity ratio ii. Times interest earned ratio...
a. For the years 2005–2009, calculate Boeing’s: i. Total liabilities-to-equity ratio ii. Times interest earned ratio iii. Times burden covered ratio b. What percentage decline in earnings before interest and taxes could Boeing have sustained in these years before failing to cover: i. Interest and principal repayment requirements? ii. Interest, principal, and common dividend payments? c. What do these calculations suggest about Boeing’s financial leverage during this period? I am aware that this question has been submitted and answered by...
2.) Suppose that the number of requests for assistance received by a towing service is a...
2.) Suppose that the number of requests for assistance received by a towing service is a Poisson process with rate a = 6 per hour. a.) Find the expected value and variance of the number of requests in 30 minutes. Then compute the probability that there is at most one request in 30 minute interval. b.) What is the probability that more than 20 minutes elapse between two successive requests? Clearly state the random variable of interest using the context...
Suppose that the number of requests for assistance received by a towing service is a Poisson...
Suppose that the number of requests for assistance received by a towing service is a Poisson process with rate α = 6 per hour. a) Find expected value and variance of the number of requests in 30-minutes. Then compute the probability that there is at most one request in 30-minute interval. Clearly state the random variable of interest using the context of the problem and what probability distribution it follows. b) What is the probability that more than 20 minutes...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT