1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
jeyben [28]
4 years ago
13

What is the purpose of interrupts? What is a trap? Can traps be generated intentionally by a user program? If so, for what purpo

se?
Computers and Technology
1 answer:
SpyIntel [72]4 years ago
3 0

Answer:

Interrupt (INT) helps operating system to stop work on one process and start work on other process using interrupt signals.

Explanation:

Purpose of interrupts:

• Interrupts are useful when an I/O device needs to be serviced only occasionally at low data transfer rate.

• For example, when a peripheral requires the attention of the processor to perform an I/ O operation.

A trap:

• also known as an exception or a fault, is typically a type of synchronous interrupt caused by an exceptional condition

• is a software-generated interrupt.

• For example it's caused by division by zero or invalid memory access.

Can traps be generated intentionally by a user program?  Yes.

If so, for what purpose?  

• the usual way to invoke a kernel routine (a system call) because those run with a higher priority than user code.  

• Handling is synchronous, so the user code is suspended and continues afterwards.

• In a sense they are active - most of the time, the code expects the trap.

You might be interested in
Which of the following best describes the protocols used on the Internet?
ASHA 777 [7]

Answer:

C: The protocols of the Internet are open and used by all devices connected to the network

Explanation:  Hope this helps.  

There are billions of devices connected to the Internet, and hundreds of different kinds of devices: laptops, tablets, phones, refrigerators, handheld credit card readers, and so on. Protocols (standards) ensure that the variety of devices interact with each other smoothly.  There are a lot of protocols! The Internet was designed with several layers of abstraction that sort the protocols according to what part of the process they support.

4 0
3 years ago
Which one Bc I’m struggling
amid [387]
14 is c and 16 a btw do you go to connection academy
6 0
3 years ago
Read 2 more answers
Business Professionals of America, and Future Business Leaders of America – Phi Beta Lambda are both open to business students a
AVprozaik [17]

Answer:

Middle, High and College

Explanation:

8 0
4 years ago
Read 2 more answers
Implement a metho d to nd the k-th largest element in an array of size N using a minimum priority queue (MinPQ). Assume that the
diamong [38]

Sorry don't understand spanish,I am sure you can get it wrong,for crying out loud you people get checks for coming to United States

3 0
3 years ago
Which evidence helps answer the question "Did the girl
Galina-37 [17]

Answer: it’s B, D, and E

5 0
4 years ago
Read 2 more answers
Other questions:
  • You are working the 8:00 AM shift at the help desk. An irate user who fails to identify himself calls in claiming that his works
    7·1 answer
  • Need answer Quick!!!!!
    10·1 answer
  • Technician A says that oil for the rod bearings comes from splash off the crankshaft. Technician B says that lubrication to the
    14·1 answer
  • How do i do to use the cumputer very wel?
    14·2 answers
  • What are the basic features of Usenet group
    15·1 answer
  • UDAL Pretest: Using Digital Cameras 15 Select the correct answer. Which mode of shutter speed helps to capture creative effects
    6·1 answer
  • Reverse Word Order: Write a program that reverses the order of the words in a given sentence. This program requires reversing th
    15·1 answer
  • Can someone answer this for me will award brainliest lol
    11·2 answers
  • You are creating a program that can add up the amount of money the user spent that day. Right down to the penny! What kind of va
    12·2 answers
  • if a manager identifies numerous data integrity issues, she/he should consider the reports generated from that data as invalid a
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!