What is the purpose of interrupts

Assignment Help Operating System
Reference no: EM132084926

Question 1

A "system call" is used by a process to request that the operating system perform a t ask on behalf of the process.
- Using actual Linux system calls as examples, explain what sort of t asks an operating system will perform on behalf of a process?
- Why is it necessary that the operating system performs t asks and not the process it self?
- The system call interface is presented to the programmer as a library of standard functions calls, with standard parameter list s. Linux and MacOS has over 300 system calls.
- Explain how these functions notify the operating system that a service is being requested of it , and
- Explain the methods used to identify the system call and to pass the function parameters to the operating system.

Question 2

To answer the following questions you will need to do some research-

a. What is a hash map?
b. Using an example, explain the purpose of the hash function used with a hash map?
c. What are the properties of a good hash function?
d. Discuss at least two methods used to resolve the problem when a hash function produces collisions.

Question 3

Consider the following code:
#include <stdio.h> #include <unistd.h> #include <pthread.h>
void *my_function(void *param); int main()
{
int i; pthread_t tid; pid_t pid;

for(i=0; i<3; i++) { pid = fork();
pthread_create(&tid,NULL,my_function,NULL); pthread_join(tid,NULL);

}
}

a. Explain what is happening within the for-loop. Your ex- planation must explain the purpose and e ect of the three system calls.
b. Including the init ial parent process, how many processes are created. (To answer this question do not supply just the number of processes-explain your reasoning).
N ot e: the answer is not 4.
c. How many unique threads are created? (To answer this ques- t ion do not supply just the number of threads-explain your reasoning. Also remember, the init ial process is thread 1).

Question 4

a. What is the purpose of interrupts? Why are they a critical concept of modern computers?
b. How does an interrupt differ from a trap?
c. Cant raps be generated intentionally by a user program? If so, for what purpose? Give examples.
d. What is the purpose of a timer? Why is a timer a critical component of modern computers?

Verified Expert

"This is an Operating System related Assignment. There are some questions on basic data structures like hashmap in Linux environment. Other questions are related to interrupt and trap, thread creation etc. It also covers the basic programming at the OS level. "

Reference no: EM132084926

Questions Cloud

Briefly explain the ideas of teamwork and motivation : Briefly explain the ideas of teamwork and motivation and how these were thought about before the Hawthorne Sudies
Relationship of terms with the cdmo : What is the relationship of these terms with the CDMO? Do you see signs of this trio within your organization?
How david proposal will affect the net cash flow : How David proposal will affect the net cash flow from operating activities? Explain and determine the value of the change
Problem for interest groups is the free-rider problem : A continuing problem for interest groups is the free-rider problem. A free rider is one who enjoys the benefits of a group but does not join it.
What is the purpose of interrupts : What is the purpose of interrupts? Why are they a critical concept of modern computers - Explain what is happening within the for-loop
Company intranet and all corporate information : One of the most effective strategies for increasing the flow of information within a hospitality organization is to give all employees access to the company
Project management rather than performance or budgeting : Major focus of effort throughout the history of project management rather than performance or budgeting?
How will your older employees feel about the new system : Each week you will submit your response to the business situation presented. Use an APA formatted paper with a Title page and a References page.
What do you think are social responsibilities of democracy : What do you think are the social responsibilities of a democracy? Why?

Reviews

inf2084926

10/31/2018 1:40:05 AM

It does not have technical parts. there are simple question answers. you gave a genuine amount. you can take one more day payment done I have received the email from you guys of payment successful. Undeniably the best assignment writing services. My experience was exceptional. Thanks.

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd