Professional Documents
Culture Documents
OS - Computer Instructor Study Materials-1 PDF
OS - Computer Instructor Study Materials-1 PDF
OS - Computer Instructor Study Materials-1 PDF
Net
SRIMAAN COACHING CENTRE-PG-TRB-COMPUTER 2019-20
INSTRUCTORS GRADE-I-(NEW SYLLABUS-2019)--
CONTACT: 8072230063.
SRIMAAN
SRIMAAN
PG-TRB
COMPUTER
INSTRUCTOR
OPERATING SYSTEMS
2019-2020
SRIMAAN COACHING CENTRE-TNUSRB-EXAM STUDY MATERIAL/
PG-TRB-COMPUTER INSTRUCTOR GRADE-I / TET: P1/P2 /RRB
AEEO/STUDY MATERIALS AVAILABLE-CONTACT -8072230063.
CONTACT
8072230063
SRIMAAN COACHING CENTRE-TNUSRB-EXAM STUDY MATERIAL/
PG-TRB-COMPUTER INSTRUCTOR GRADE-I / TET: P1/P2 /RRB
AEEO/STUDY MATERIALS AVAILABLE-CONTACT -8072230063.
www.Kalviseithi.Net
SRIMAAN COACHING CENTRE-PG-TRB-COMPUTER
INSTRUCTOR GRADE-I– NEW STUDY MATERIAL 2019-20
2019-CONTACT:8072230063.
PG-TRB-COMPUTER INSTRUCTOR-
GRADE-I
OPERATING SYSTEMS
UNIT-II
Introduction:
SRIMAAN8072230063
What is an Operating System?
Similar to a government.
OS is a resource allocator
OS is a control program
System Software:
Independent of applications, but common to all
Examples
C library functions
A window system
A database management system
Resource management functions
Memory
Space on a disk
The CPU
OS Strategies:
Batch processing
Timesharing
Personal computer & workstations
Process control & real-time
Network
Distributed
Multiprogramming organizes jobs (code and data) so CPU always has one to execute
When it has to wait (for I/O for example), OS switches to another job.
MIMD: super-computing.
Batch Systems
Uses multiprogramming
No human-computer interaction
Timesharing
Uses multiprogramming
Support interactive computing model (Illusion of multiple consoles)
Different scheduling & memory allocation strategies than batch.
Fire operator.
Also usually want to abstract away from grungy hardware i.e., OS provides a virtual
machine:
Share CPU (in time) and provide each app with a virtual processor
Allocate and protect memory, and provide applications with their own virtual address
space
Remainder of this part of the course will look at each of the above areas in turn. . .
If processes don’t fit in memory, swapping moves them in and out to run
Operating-System Operations:
Other process problems include infinite loop, processes modifying each other or
the operating system
Provides ability to distinguish when system is running user code or kernel Code
System call changes mode to kernel, return from call resets it to user
Set up before scheduling process to regain control or terminate program that exceeds allotted
Many processes in memory simultaneously, and every process needs memory for:
In addition, operating system itself needs memory for instructions and data.
⇒ must share memory between OS and k processes.
Relocation
Allocation
Protection
Sharing
Logical Organisation
Physical Organisation
Systems generally first distinguish among users, to determine who can do what
User identities (user IDs, security IDs) include name and associated number, one
per user
User ID then associated with all files, processes of that user to determine access
Control
Group identifier (group ID) allows set of users to be defined and controls
managed, then also associated with each process, file
Computing Environments:
Client-Server Computing
Peer to Peer:
Discovery Protocol:
Web-Based Computing
Operating systems made available in source-code format rather than just binary closed
source
Started by Free Software Foundation (FSF), which has “copyleft” GNU Public
License (GPL).
Examples include GNU/Linux and BSD UNIX(including core of Mac OS X), and
User interface - Almost all operating systems have a user interface (UI).
Program execution - The system must be able to load a program into memory
and to run that program, end execution, either normally or abnormally (indicating
error)
I/O operations - A running program may require I/O, which may involve a file
or an I/O device
May occur in the CPU and memory hardware, in I/O devices, in user program.
For each type of error, OS should take the appropriate action to ensure
correct and consistent computing
Another set of OS functions exists for ensuring the efficient operation of the system
Many types of resources - Some (such as CPU cycles, main memory, and
file storage) may have special allocation code, others (such as I/O devices)
may have general request and release code.
Accounting
To keep track of which users use how much and what kinds of computer resources.
Security of the system from outsiders requires user authentication, extends to defending
external I/O devices from invalid access attempts.
System Calls:
Three most common APIs are Win32 API for Windows, POSIX API for POSIX-based.
systems (including virtually all versions of UNIX, Linux, and Mac OS X), and Java
API.
Process control:
Load, execute
Create process, terminate process
Get process attributes, set process attributes
Wait for time
Wait event, signal event
Allocate and free memory
File management
Device management
Information maintenance
Communications
System Programs:
File manipulation
Status information
File modification
Programming language support
Program loading and execution
Communications
Application programs
Most users’ view of the operation system is defined by system programs, not the
actual system calls.
Some of them are simply user interfaces to system calls; others are considerably
more complex
File management
Status information
Some ask the system for info - date, time, amount of available memory, disk
File modification
Programming-language support
Communications
Operating-System Debugging:
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart
enough to debug it.”
Probes fire when code is executed, capturing state data and sending it to
consumers of those probes
Operating systems are designed to run on any of a class of machines; the system must
be configured for each specific computer site.
Bootstrap program – code stored in ROM that is able to locate the kernel, load it into
System Boot
Small piece of code – bootstrap loader, locates the kernel, loads it into memory,
and starts it
Sometimes two-step process where boot block at fixed location loads bootstrap
Loader
Process Concept:
A process includes:
program counter
stack
data section
The Process:
Multiple parts
TO CONTACT
8072230063.
SRIMAAN-8072230063
TET/ PG-TRB / TNPSC CCSE G-IV&VAO
GROUP 2A / AEEO/ TNUSRB-P0LICE
TRB-COMPUTER INSTRUCTORS
STUDY MATERIALS AVAILABLE.
PG-TRB MATERIALS:
PG TRB: ENGLISH MATERIAL (QUESTION BANK)
TET/PG-TRB:
EDUCATIONAL PSYCHOLOGY
STUDY MATERIAL AND TEST
QUESTION PAPER AVAILABLE.
AEEO EXAM
MATHEMATICS /ENGLISH STUDY
MATERIAL.
10% Discount for all materials. Materials are
sending through COURIER.
CONTACT
8072230063
THANK U
SRIMAAN