Computer Fundamentals and Programming in C: By: Pradip Dey & Manas Ghosh
Computer Fundamentals and Programming in C: By: Pradip Dey & Manas Ghosh
Fundamentals and
Programming in C
Batch processing :These are jobs that are executed with minimum
user interaction and as and when the computer system is available
following a schedule.
◦ Process management
◦ Memory management
◦ Secondary memory management
◦ Device (I/O) management
◦ File management
◦ Protection
System calls
◦ System calls provide the interface between a running program and the
operating system.
◦ These calls are generally available as assembly language instructions,
and are usually listed in the manuals used by assembly language
programmers.
◦ Some systems may allow system calls to be made directly from a high-
level language program, in which case the calls normally resemble
predefined function or subroutine calls.
◦ System calls can be roughly grouped into five major categories :
process control, file manipulation, device manipulation, information
maintenance, and communications.
◦ The three groups are called batch process, time-shared, and real-time
operating systems.
It is used on
Portability:
Open system :
◦ UNIX provides users with powerful tools and utilities. Some of these tools are simple commands that
can be used to carry out specific tasks.
◦ Other tools and utilities are really small programmable languages that may be used to build scripts to
solve problems.
◦ More importantly, the tools are intended to work together, like machine parts or building blocks.
Multi-user capability:
◦ More than one user can access the same data at the same time.
◦ A computer system that can support multiple users is generally less expensive
than the equivalent number of single-user machines.
Multitasking:
◦ A given user can perform more than one task at the same time. One could
update the client’s database while printing the monthly sales report.
◦ The limit is about 20 simultaneous tasks per user and depending on the
computer system, a system-wide limit of 50 or more tasks can be performed,
which slows the response.
26
◦ A hierarchical structure
◦ Consistent treatment of file data
◦ The ability to create and delete files
◦ Dynamic growth of files
◦ Ordinary files
◦ Directory files
◦ Special files
◦ Cd..
◦ Issuing the cd command without any arguments moves the choice to the
home directory. This is very useful if the user is lost in the file system.
IO.SYS
DOS.SYS
COMMAND.COM
◦ Conventional memory
◦ Extended memory
◦ Expanded memory
◦ PROGRAM.EXE
◦ DATA.DAT
◦ LETTER.DOC
That is, all word processor files might have the extension
.DOC, while all picture files might have the extension .PIC
Suppose there are two commands, ONE and TWO. ONE creates data that is
needed by the command TWO.
The first command writes its data into the WORK file and the second program
reads back from it.
To create a pipeline command, just write the program names on the same
command line, separated by a vertical bar (|) that is the symbol for a pipeline.