Basics of Operating Systems (IT2019-2) : Assignment II
Basics of Operating Systems (IT2019-2) : Assignment II
Basics of Operating Systems (IT2019-2) : Assignment II
GIANG LE e1800927
Assignment II:
1. What is kernel?
The kernel is a computer program at the core of a computer's operating system with
complete control over everything in the system. It contains the components of the
operating system that will stay resident in memory
Read more: On UNIX, the first system process is init and it starts many other daemons.
Once this phase is complete, the system is fully booted, and the system waits for some
event to occur. (init is a part of kernel)
1
5. What is interrupt? What happens during interrupt?
An interrupt is a signal sent to the processor that interrupts the current process. It may be
generated by a hardware device or a software program.
Hardware may trigger an interrupt at any time by sending a signal to the CPU, usually by
way of the system bus.
Software may trigger an interrupt by executing a special operation called a system call, also
called a monitor call.
When the CPU is interrupted, it stops what it is doing and immediately transfers execution
to a fixed location. The fixed location usually contains the starting address where the
service routine for the interrupt is located. When the interrupt service routine gets
executed and completed, the CPU resumes the interrupted computation.
Read more: Interrupts are an important part of a computer architecture. Each computer
design has its own interrupt mechanism, but several functions are common. The interrupt
must transfer control to the appropriate interrupt service routine. The straightforward
method for handling this transfer would be to invoke a generic routine to examine the
interrupt information. The routine, in turn, would call the interrupt-specific handler.
6. An environment variable is a variable which modifies the working environment when the
user interacts with the operating system. The environment variable is in use of all
processes under the operating system. How do you see the environment variables on
Windows and Linux operating systems?
To see the environment variables on Windows
Through Control Panel:
Search “Advanced” in Control Panel, and click View advanced system settings to Open
System Properties dialog box. Advanced tab is automatically selected. And click
Environment Variables button to show what are available.
2
To see the environment variables on Linux
3
8. Update .bash_profile and .bash_logout on shell.puv.fi to print your text when you login
and log out of the system.
4
5