Operating System Lab
Operating system lab
Quick Links
Experiment 1
Objective: Study of hardware and software requirements of differenet operating systems (Windows 10, UNIX, Linux, Windows XP, and Windows 7/8).
Theory:
- An operating system (OS) is software that manages and handles the hardware and software resources of a system. It provides intrection between users of computers and computer hardware.
- An operating system is responsible for managing and controlling all the activities and sharing of computer resources.
- An operating system is a low-level software that includes all the basic functions like processor management, memory management, error detection, etc.
Windows 10
Hardware requirements
- Processor: 1 GHz or faster processor
- RAM: 1 GB for 32-bit or 2 GB for 64-bit
- Storage space: 16 GB for 32-bit OS or 20 GB for 64-bit OS.
- Display: 800 x 6009 with WDDM driver
Software requirements
- Graphics Card: Direct X9 or later with WDDM 1.0 driver
UNIX
Hardware requirements
- Processor: Minimum of 1 GHz processor
- RAM: Minimum of 1 GB RAM
- Storage space: Minimum of 10 GB free disk space
Software requirements
- UNIX-compatible operating system, such as Sun Solaris, IBM AIX, HP-UX, etc.
- Compiler and development tools
- X Window System for graphical user interface
- Networking tools for network communication
Linux
Hardware Requirements:
- Processor: Minimum of 1 GHz processor
- RAM: Minimum of 1 GB RAM (2 GB or more recommended for better performance)
- Storage space: Minimum of 10 GB free disk space (20 GB or more recommended for better performance)
Software Requirements:
- Linux distribution, such as Ubuntu, Fedora, CentOS, Debian, etc.
- Graphical user interface
- Compiler and development tools
- Networking tools for network communication
Windows XP
Hardware Requirements:
- Processor: Minimum of Pentium 233 MHz processor (300 MHz or higher)
- RAM: Minimum of 64 MB RAM (128 MB or higher)
- Storage space: Minimum of 1.5 GB free disk space
Software Requirements:
- Windows XP operating system
- DirectX 9 graphics device with WDDM driver (optional for graphical user interface)
- Networking tools for network communication (optional)
Windows 7/8
Hardware Requirements:
- Processor: Minimum of 1 GHz processor (1 GHz or higher)
- RAM: Minimum of 1 GB RAM (2 GB or higher)
- Storage space: Minimum of 16 GB free disk space (20 GB or higher)
Software Requirements:
- Windows 7 or Windows 8 operating system
- DirectX 9 graphics device with WDDM 1.0 or higher driver (optional for graphical user interface)
- Networking tools for network communication
Experiment 2
Objective: Execute various system calls.
- Process Management
- File Management
- Input/Output System Calls
Process Management: Process management uses certain system calls. They are explained below.
fork()
: system call is used to create a new process.exec()
: system call is used to run a new program.wait()
: system call is used to make the process to wait.exit()
: system call is used to terminate the process.getpid()
: system call is used to find the unique process id.getppid()
: system call is used to find the parent process id.nice()
: system call is used to bias the currently running process property.
Example program for example of fork()
OUTPUT
File Management: There are four system calls for file management,
open()
: system call is used to know the file descriptor of user-created files. Since read and write use file descriptor as their 1st parameter so to know the file descriptoropen()
system call is used.read()
: system call is used to read the content from the file. It can also be used to read the input from the keyboard by specifying the 0 as file descriptor.write()
: system call is used to write the content to the file.close()
: system call is used to close the opened file, it tells the operating system that you are done with the file and close the file.
Example program for file management
OUTPUT
Input/Output System Calls: Basically there are total 5 types of I/O system calls:
create()
: Used to Create a new empty file.open()
: Used to Open the file for reading, writing or both.close()
: Tells the operating system you are done with a file descriptor and Close the filewhich pointed by fd.read()
: From the file indicated by the file descriptor fd, theread()
function reads bytesof input into the memory area indicated by buf.write()
: Writes bytes from buf to the file or socket associated with fd.
Example program for Input/output System Calls
OUTPUT
Experiment 3
Objective: Execute various system calls.
- Process Management
- File Management
- Input/Output System Calls
See Also