Alexander Suraphel
Alexander Suraphel

Reputation: 10613

Why is issuing a trap not a priviledged task?

In solutions to a question on the book "Operating Systems Concepts" it indicates that issuing a trap not a privileged task. Why is that so?

Upvotes: 2

Views: 3316

Answers (2)

ChristopheD
ChristopheD

Reputation: 116267

Some instructions need special privileges to run at all, which most of the time means only the OS gets to execute them.

Most user processes (programs) will need to issue a trap / exception to get the OS to run these instructions.

Upvotes: 3

cnicutar
cnicutar

Reputation: 182674

If it were a privileged operation, it wouldn't be possible for a process to issue a system call.

Upvotes: 2

Related Questions