Name: Shanaz N Kandira Student Number: B211025B Course Code: Swe 111 Course Narration: Operating Systems Concepts LEVEL: 1.2
Name: Shanaz N Kandira Student Number: B211025B Course Code: Swe 111 Course Narration: Operating Systems Concepts LEVEL: 1.2
LEVEL: 1.2
ASSIGNMENT 1
(1a) An interrupt is an event that alters the sequence in which the
processor executes instructions. An interrupt might be planned
(specifically requested by the currently running program) or
unplanned (caused by an event that might or might not be related to
the currently running program). It is a change in program defined
flow of execution. When it occurs, the hardware executes the
instructions at a specified address instead of following the normal
flow. Interrupts fall into classes which include:
(i)Timer
(iv) Program
(ii) To decide memory allocation policy like which process should get
how much memory when and where.
(c) User mode is the mode in which the applications are running whilst
kernel mode is the privileged mode to which the computer enters when
accessing hardware resources.
(d) One gains the advantage of local spooling and rendering of print
jobs and those jobs go directly from the workstation to the printer. This
is the most efficient way of printing and reduces overall network traffic.
A driver issue or a job stuck in the queue will only affect one user.
Printing directly to the printer is a slower process than spooling.
(c)
(4a) I. Locate the file to be examined, right-click on the icon, and select
properties.
3. There, you will see that the permission for each file differs according
to three categories: ….owner (the user who created the file/directory).
--for each file, the owner can grant or restrict access to users according
to the categories they fall in.
-Newlogin should be the new username you would like to have, and
oldlogin should be the old one.
(c) to add user to a certain group, use the usermod command. To add a
user to a group, specify the –a-G flags. These should be followed by the
name of the group to which you want to add a user and the user’s
username.
(d) linux kernel is the heart of the operating system. Without the
kernel, we simply cannot perform any task, since it is mainly
responsible for the software and hardware of our computer working
correctly and can interact with each other.