Question

Linux 1. Describe the relationship between user mode and kernel mode during a system call? Explain...

Linux

1. Describe the relationship between user mode and kernel mode during a system call? Explain in detail.

2. In system calls for file input/output, why is buffering needed? Explain in detail.

Homework Answers

Answer #1

1. A system call occurs when a process requests some services in the user mode from the kernel. This can be achieved if the mode is changed from system to kernel mode.

The system is commonly in user mode while running an application. If the application needs some services from kernel mode, an interrupt is generated which is called a system call. This causes the mode to be changed from user to kernel.

2. Input/output related to a file requires execution of some input/output operations and transfer of data. Buffering serves as a throughput improving mechanism. For every device engaged in input/output service, a buffer is associated. A temporary space is used where data and commands are stored. They are transferred into the processor and out of the processor for transfer of data to take place at the same time.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
List two challenges an operating system faces when passing parameters between user and kernel mode (e.g.,...
List two challenges an operating system faces when passing parameters between user and kernel mode (e.g., consider the differences between passing parameters via procedures in the same process versus between processes/applications). Describe how an operating system can overcome them.
Suppose you have a system that supports both user- and kernel- level threads. Which kind of...
Suppose you have a system that supports both user- and kernel- level threads. Which kind of threading do you prefer (or does it make any difference) if: 1. applications are highly compute (CPU) bound and perform almost no system calls? 2. applications do a lot of I/0 (so, lots of system calls) in addition to CPU work?
linux operating system 1) Give a command to search the file /etc/passwd for the string “sarwar”...
linux operating system 1) Give a command to search the file /etc/passwd for the string “sarwar” 2) Give the command for deleting the memos directory. How do you know that the directory has been deleted? 3) Give the command for searching a file named fruits for the string “apple”, sending the output of the command to a file called applefreq
1. Explain the difference between ethics and morals and describe the relationship between the two. Can...
1. Explain the difference between ethics and morals and describe the relationship between the two. Can ethics hold a person to higher standards than laws? Explain. 2. What elements should be included in a firm's mission statement?
1. Explain the relationship between investment and long-term economic growth and describe the relationship graphically in...
1. Explain the relationship between investment and long-term economic growth and describe the relationship graphically in an AD/AS graph. **Please post original answer and include graph***** THANKS!!
1.Explain the difference between deterministic and stochastic user equilibrium with an example. Which one is more...
1.Explain the difference between deterministic and stochastic user equilibrium with an example. Which one is more realistic and why? 2.Explain with an example why an activity based model is a better representative of daily urban travel than a four-step model. 3.The system utilities for Public Transit (PT) and Car (C) mode are: Vc = 0.238 – 0.350TTc Vpt = -0.531TTpt Calculate the probability of choices for following trips: Trip Travel Time Car (TTc) Travel Time Public Transit (TTpt) 1 5...
Describe and explain the relationship between power output and heart rate for each condition: walking up...
Describe and explain the relationship between power output and heart rate for each condition: walking up stairs - running up stairs. -
Question (excel) 1. Add a worksheet to the file and call it Output. 2. In the...
Question (excel) 1. Add a worksheet to the file and call it Output. 2. In the Output sheet: a. enter first name in cell A1.     b. enter last name in cell B1. 3. Record a macro. Call your macro CIS308Exam3. Within your macro, do the following:      a. In cell C1, use a formula to concatenate A1 and B1 with a space in between     b. Stop recording. 4. Open your macro in Visual Basic edit mode. Copy your...
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
1. Assess NAS versus SAN. What is the relationship between these concepts and system architecture? 2....
1. Assess NAS versus SAN. What is the relationship between these concepts and system architecture? 2. Describe the ramifications of the virtualization of storage.