Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions

Size: px
Start display at page:

Download "Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions"

Transcription

1 Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions 1. What are the different parts of UNIX system? i. Programs and services that have made the UNIX system environment. ii. Operating system that supports those programs and services. 2. What are the goals of Multics system? To provide simultaneous access to a large community of users, to supply ample computation power and data storage, and to allow users to share their data easily, if desired. 3. What are the reasons for popularity of UNIX operating system? i. The system is written in high level language, make it easy to read, understand, change, and move to other machines. ii. It has a simple user interface that has the power to provide the services that users want. iii. It provides primitives that permit complex programs to be built from simpler programs. iv. It uses a hierarchical file system, consistent format for files, byte stream, making application programs easier to write. v. It provide simple and consistent interface to peripheral devices. vi. It is a multi user multi process system, it hides the machine architecture from user. 4. What is the purpose of system calls? It instructs the kernel to do various operations for the calling program and exchange data between the kernel and the program. 5. Write down the characteristics of UNIX file system? A hierarchical structure. Consistent treatment of file data. The ability to create and delete files. Dynamic growth of files. The protection of file data. The treatment of peripheral devices as files 6. Define path name and component. A path name is a sequence of component names separated by slash characters; a component is a sequence of characters that designates a file name that is uniquely contained in the previous component. 7. What do you mean by access permissions?

2 Access permissions are set of bits associated with each file. Access permissions can be set independently to control read, write, and execute permission for three classes of users: the file owner, a file group and every one else. 8. Define program and process. A program is an executable file, and a process is an instance of the program in execution. 9. What is the purpose of building block primitives? Building block primitives enable users to write small, modular programs that can be used as building blocks to build complex programs. Example for primitives is capability to redirect I/O. 10. What are the services provided by the kernel? i. Controlling the execution of processes by allowing their creation, termination or suspension and communication. ii. Scheduling processes for execution on the CPU. iii. Allocating main memory for an executing process. iv. Allocating secondary memory for efficient storage and retrieval of user data. v. Allowing processes controlled access to peripheral devices. 11. What is the purpose of memory management? Memory management module controls the allocation of memory. If at any time the system does not have enough memory for all processes the kernel moves them between main memory and secondary memory so that all processes get a fair chance to execute. 12. What is the job done by scheduler? The scheduler module allocates the CPU to process. It schedules them to run in turn until they voluntarily relinquish the CPU while awaiting a resource until the kernel preempts them when their recent run time exceeds a time quantum. The scheduler then chooses a highest priority eligible process to run. 13. What do you mean by swapping? UNIX system transferred entire processes between primary memory and swap device, but did not transfer parts of a process independently, except for a shared text. Such a memory management policy is called swapping 14. List down the types of file Regular file, Directory file, FIFO files, Character special file, Block special file, socket file, symbolic file. 15. What are the different type of commands supported by shell? i) A command can be an executable file that contains object code produced by compilation of source code. ii) A command can be executable file that contains a sequence of shell command lines.

3 iii) A command can be an internal shell command 16. Define shell programming. It a command interpreter program that users typically execute after logging into system. The shell interprets the first word of command line as a command name. For many commands the shell forks and the child process execs a command associated with the name. 17. What are the execution modes of the user process? Define that. There are two levels of user process ie, user and kernel. When a process executes a system call the execution mode of the process changes from user mode to kernel mode. 18. What is the difference between user mode and kernel mode? Processes in user mode can access their own instructions and data but not kernel instructions and data. Processes in kernel mode can access kernel and user addresses. Some machine instructions are only privileged to kernel mode. 19. Define interrupts. Interrupts are caused by events that are external to process. Interrupts are considered to happen between the execution of two instructions, and the system continues with the next instruction after servicing the interrupt. 20. Define exception. Exception refers to unexpected events caused by a process such as addressing illegal memory, executing privileged instructions, dividing by zero and so on. Exception happen in the middle of the execution of an instruction and the system attempts to restart the instruction after handling the exception. 21. Write some sample processor execution levels? Machine errors Clock Disk Network devices Terminals Software interrupts 22. What are the different communications supported by UNIX? Inter process communication and network communication 23. What do you mean by Inter process communication? UNIX operating system supports multiple processes simultaneously. The communications between these processes are referred as Inter process communication. 24. What are the different inter process communication methods supported by UNIX V

4 Message Queues Named and unnamed pipes Share memory Semaphore 25. What is the purpose of file sub system? The file sub system accesses file data using a buffering mechanism that regulates data flow between the kernel and secondary storage device. 26. What are the central concepts of UNIX system? The entities files and processes are referred as central concepts of UNIX. 27. What are the different levels of operation in UNIX kernel? User Level: The user programs and the libraries are available here. Kernel level: This is the heart of UNIX operating system. All the operations related to file system, process control sub system, hardware control, and device drivers are available in this level. Hardware level: The physical components of the system are available here. 27. What is the purpose of file sub system? The file sub system accesses file data using a buffering mechanism that regulates data flow between the kernel and secondary storage device. 28. What is the purpose of memory management? Memory management module controls the allocation of memory. If at any time the system does not have enough memory for all processes the kernel moves them between main memory and secondary memory so that all processes get a fair chance to execute. 29. Write down the purpose of buffering mechanism? Buffering mechanism interacts with block I/O device drivers to initiate data transfer to and from the kernel. 30. What is the job done by device drivers and block I/O devices? Device drivers are the kernel modules that control the operation of peripheral devices. Block I/O devices are random access storage devices 31. What is the purpose of process control subsystem? The process control subsystem is responsible for process synchronization, inter process communications, memory management and process scheduling. The file subsystem and process control subsystem interact when loading a file into memory for execution. The process control subsystem reads executable files into memory before executing them. 32. Write down the system calls useful for control the processes? fork: To create a new process exec: overlay the image of the program into the running process exit: to terminate a process

5 wait: to introduce synchronization between the process. brk: control the size of the memory allocated to a process. signal: control process response to extraordinary events. 33. What are the data structures used for file processing? File table: It is a global data structure User file descriptor table: It is allocated per process When a process opens or creats a file the kernel allocates an entry from each table corresponds to the file inode. Inode: Internal representation of file is given by an inode, which contains a description of the disk layout of the file data and other information related to permission, access time, owner etc. 34. Write about file system layout Boot block : This occupies the beginning of a file system, typically first sector, and may contain the bootstrap code Super block: describes the state of the file system. Inode list : A list of inodes that follows the super block in the file system. Data blocks: Contain file data and administrative data. 35. Define process. A process is the execution of a program and consists of a pattern of bytes that the CPU interprets as machine instructions, data, and stack. 36. What are the contents of executable file? i. Set of headers that describes the attributes of the file. ii. A program text. iii. A machine language representation of data that has initial values when the program starts execution, and an indication of how much space the kernel should allocate for uninitialized data. iv. Symbol table information 37. List down the fields in process table. State field Identifiers indicating the user who owns the process An event descriptor set when a process is suspende 36. What are the information available in inode? A descriptor of the disk layout of the file data and other information such as the file owner, file access permissions and access times. 37. Define the components of file system. a. Boot block: This block occupies the beginning of the file system, typically the first sector, and may contain the bootstrap code. b. Super block: describes the state of file system- how large it is, how many files it can store, where to find free space on the file system and other information. c. Inode list: List of inodes. d. Data block: This block contains file data and administrative data. 38. Define process.

6 A process is the execution of the program and consists of the pattern of bytes that the CPU interrupts as machine instructions, data, and stack. 39. What are the components of executable file? a. Set of a headers that describe the attributes of file. b. The program text c. A machine language representation of data that has initial values when the program starts execution and an indication of how much space the kernel should allocate for uninitiallized data d. Other sections such as symbol table information. 40. What is the content of stack frame? Stack frame contains the parameters to a function, its local variables, and the data necessary to recover the previous stack frame, including the value of program counter and stack pointer at the time of the program call. 41. What are the contents of user stack and kernel stack? The user stack contains the arguments, local variables, and other data for functions executing in user mode. The kernel stack contains the stack frames for functions executing in kernel mode. 42. What are the important fields in u area? Pointer to process table slot of the currently executing process Parameters of the current system call return values and error codes Internal I/O parameters Current directory and current root Process and file size limits 43. What are the factors affect the state of the process? Text of the process, the values of its global user variables and data structures, the values of machine registers it uses, the values stored in its process table slot and u_area and the contents of its user and kernel stacks. 44. Define context switch. When the kernel decides to execute another process the kernel saves the necessary information so that it can later switch back to the first process and resume its execution. 45. Define process state and list down the different basic process states. The lifetime of a process can be divided into a set of states, each with certain characteristics that describe the process. The basic process states are i. The process is currently executing in user mode. i. The process is currently executing in kernel mode. ii. The process is not executing, but it is ready to run. iii. The process is sleeping. 46. Define state transition diagram.

7 It is a directed graph whose nodes represent the states a process can enter and whose edges represent the events that cause a process to move from one state to another. State transitions are legal between two states if there exist an edge from the first state to the second. 47. Describe the contents in buffer cache. The buffer consists of two parts: a memory array that contains data from the disk and a buffer header that identifies the buffer. The data in buffer corresponds to the data in a logical disk block and kernel identifies the buffer contents by examining identifier fields in the buffer header. 48. What is the information available in buffer header? The buffer header contains a device number field and block number fields that specify the file system and block number of the data on disk and uniquely identify the buffer. It also contains a pointer to a data array, status field. 49. How will you identify the status of the buffer? 1. The buffer is currently locked. 2. The buffer contains valid data. 3. The kernel must write buffer contents to disk before reassigning the buffer 4. The kernel is currently reading or writing the contents of the buffer to disk. 5. A process is currently waiting for the buffer to become free. 50. What are the different scenarios to allocate a buffer for a disk block i. The kernel finds the block on its hash queue and its buffer cache. ii. The kernel cannot find the block o the hash queue, so it allocates a buffer from the free list. iii. The kernel cannot find the block o the hash queue and in attempting to allocate buffer from the free list, find a buffer on a free list that has been marked delayed write. The kernel must write the delayed write buffer to disk and allocate another buffer. iv. The kernel cannot find the block o the hash queue, and the free list of buffers is empty. v. The kernel finds the block on the hash queue but its buffer is currently busy. 51. Write down the difference between named and unnamed pipes A major difference between theses IPC mechanism is the related processes are allowed to communicate using unnamed pipes but the unrelated processes are also communicate in named pipes. 52. What is the purpose of debugger process? A debugger process spawns a process to be traced and controls its execution with the ptrace system call, setting and clearing break points, and reading and writing data in its virtual address space. 53. What are the jobs done by process tracing?

8 i. Synchronization of the debugger process and the traced process. ii. Controlling the execution of traced process. 54. Write down the structure of debugging process. if ((pid = fork() ) = = 0) { /* child traced process */ ptrace(0,0,0,0); exec( name of traced process here ); } /* debugger process continues here */ for ( ; ;) { wait((int *) 0); read(input for tracing instructions); ptrace(cmd,pid, ); if (quitting trace) break; } 55. List down the drawbacks of ptrace function. i. The kernel must do four context switches to transfer a word of data between a debugger and a traced process. ii. A debugger can only trace child processes. If the traced child forks the debugger has no control over the grandchild. iii. A debugger cannot trace processes that is already executing if the debugged process had not called ptrace to let the kernel know that it consents to be traced. iv. It is impossible to trace setuid function, because the users could violate security by writing their address space via ptrace and doing illegal operations. 56. What are the advantages of ptrace function introduces by Killian? i. It is faster than orinary ptrace function. ii. A debugger can trace arbitrary processes. iii. The traced process does not have to make prior arrangement to allow tracing. 57. What the Inter process communication mechanisms available in System V? i. Messages allow processes to send formatted data streams to arbitrary processes. ii. Shared memory allows processes to share parts of their virtual address space. iii. Semaphores allow processes to synchronize execution. 58. List down the common properties of system V IPC. i. Each mechanism contains a table whose entries describe all instances of the mechanism. ii. Each entry contains a numeric key. iii. Each mechanism contains get system call to create a new entry or to retrieve an existing entry.

9 iv. The kernel uses the following formula to find the index into the table Index = descriptor modulo (number of entries in table) v. Each IPC entry has a permission structure that includes the user ID and group ID, read_write_execute permissions for owner, group and others. vi. Each entry contains other status information like time of last access or update etc. vii. Each mechanism contains a control system call to query status of an entry, to set status information or to remove the entry from the system. 59. What are the system calls related to message queues? i. msgget returns a message descriptor that designates a message queue for use in other system calls. ii. msgctl has options to set and return parameters associated with a message descriptor and an option to remove descriptors. iii. msgsnd sends a message iv. msgrcv receives a message. 60. What are the different process states in UNIX? The possible process states are User running Kernel running Ready to run in memory Asleep in memory Ready to run, but it is swapped process Sleep, but it is swapped Preempted Created Zombie state 61. What are the entries in process table? State field, user identifiers, process identifiers, scheduling parameters, signal field, timer fields 62. What are the I/O parameters in U area? I/O parameters in U area are Mode - indicates read and write Count count of bytes to read and write Offset byte offset in file Address target address to copy data in user or kernel memory Flag indicate a if address is in user or kernel memory 63. Write down the entries in u area. A pointer to a process table, Real and effective user Ids, array for signals, timer fields, control terminal field, error field, return value field, I/O parameters, current directory, current root, user file descriptor, limit fields, permission modes field.

10 64. Define region. System V divides the virtual address space of a process into logical divisions called regions. A region is a continuous area of the virtual address space of a process that can be treated as a distinct object to be shared or protected. 65. What are the components of register context? The register context consists of the following components Program counter Processor status register Stack pointer General purpose registers 66. What are the components of system level context? The system level context consists of the following components Process table entry of a process U area of a process Pregion entries Kernel stack Dynamic part of system level context 67. What are the operations during interrupt handling? The kernel handles the interrupt with the following sequence of operations It saves the current register context and creates a new context layer. It determine the source of interrupt, type of interrupt and unit number Kernel invoke the interrupt handler Restore its previous context layer 68. Write down the steps for context switch. Set of steps used for context switch are i) decide whether to do a context switch and whether a context switch is permissible now. ii) Save the context of old process iii) Find the best process to schedule for execution iv) Restore its context 69. Write down the contents of region table entry. The contents in region table entries are A pointer to inode of the file Region type Size of region Location of region in physical memory

11 Status of region locked, demand, loaded into memory or valid in memory Reference count 70. What are the operations done by the kernel during fork function? The operations during fork function are Its allocate a slot in process table for the new process It assign a unique ID number It makes the logical copy of the context of the parent process It increments the file and inode table counters for files associated with the process It returns the Id of a child to parent and 0 in child process 71. Write down the process-scheduling algorithm. Algorithm for process scheduling Input and output are none { while(no process picked to execute) { for(every process on run queue) pick highest priority process that is loaded in memory; if (no process eligible to execute) idle the machine; } remove chosen process from run queue; switch context to that of chosen process, resume its execution. } 72. What are the classes of process priorities? User priorities and kernel priorities 73. What are the different process priority levels in kernel priorities? Swapper, waiting for disk I/O, waiting for buffer, waiting for inode, waiting for tty input, waiting for tty output, waiting for child exit 74. Write down the principle of fair share scheduler. This scheduler divides the user community into a set of fair share groups. The member of each group are subjects to the constraints of the regular process scheduler relative to other processes in the group. The system allocates its CPU time proportionally to each group regardless of how many processes are in the groups. 75. Define swap device The memory management system monitors the amount of available primary memory and may periodically write processes to a secondary memory device called the swap device to provide more space in primary memory.

12 76. Define demand paging policy The demand paging policy transferring memory pages instead of processes to and from a secondary device. The entire process does not have to reside in main memory to execute and the kernel loads pages for a process on demand when a process references the pages. 77. What do you mean by map? The kernel maintains the free space for the swap device in an incore table called a map. Maps used for other resources besides the swap device allows a first fit allocation of contiguous blocks of a resource. 78. What do you mean by protection fault? The process accessed a valid page but the permission bits associated with the page did not permit access. A process also incurs a protection fault when it attempts to write a page whose copy on write bit was set during the fork system call. 79. What are the different stage are specified ad device configuration? Administrators can hard_code configuration data into files that are compiled and linked when building the kernel code Administrator can supply configuration information after the system is already running; the kernel updates internal configuration tables dynamically. Self identifying devices permit the kernel to recognize which devices are installed. The configuration procedure generates or fills in tables. 80. What are the different switch tables available in UNIX? Block device switch table and character device switch table. 81. What is the purpose of icotl function? It catch all entry point for device specific commands, allowing a process to set hardware options associated with a device and software options associated with the driver. 82. What are the functions of line discipline? To parse input strings into lines To process erase characters To process a kill character To echo received character to a sequence of blank spaces. To generate signals to processes for terminal hang-ups, line breaks. To allow a raw mode that does not interpret special characters. 83. What do you mean by stream? A stream is a full duplex connection between a process and a device driver. It consists of a set of linearly linked queue pairs, one member of each pair for input and other for output. 84. What do you mean by pseudo terminal or pty?

13 A pty is a software device that operates in pairs: output directed to one member of the pair is sent to the input of the other member; input is sent to the upstream module. 85. What are the input needed for loading the region? Pointer to per process region table entry Virtual address to load region Inode pointer of file for loading region Byte offset in file for loading region Byte count for amount of data to load 86. What are the different methods available to identify the address? The driver gets the address in two ways i. Either the strategy procedure uses a buffer from the buffer pool and the buffer header contains the device and block number or the read and write procedures are passed the minor number as a parameter. ii. They convert the byte offset saved in the u area to the appropriate blok address. 87. What do you mean by shared memory? Processes can communicate directly with each other by sharing parts of their virtual address space and then reading and writing the data stored in the shared memory. 88. What are the elements of system V semaphore? A value of a semaphore The process ID of the last process to manipulate the semaphore The number of processes waiting for the semaphore value to increase The number of processes waiting for the semaphore value equal to What is the format of each element of oplist? o The semaphore number identifying the semaphore array entry being operated on o The operation and flags 90. What are the different types of page fault? Validity faults and protection faults 91. When the validity fault occurs? If a process attempts to access a page whose valid bit is not set it incurs a validity fault and the kernel invokes the validity fault handler. 92. What are the inputs needed for attaching a region? Pointer to region being attached Process to which region is being attached Virtual address in process where region will be attached Region type.

14 93. What is the purpose of dup and mount system call? The dup system call copies a file descriptor into the first free slot of the user file descriptor table, returning new file descriptor to the user. The mount system call connects the file system in a specified section of a disk to the existing file system hierarchy. 94. Write down the algorithm for process scheduling. Algorithm for process scheduling Input and output are none { while(no process picked to execute) { for(every process on run queue) pick highest priority process that is loaded in memory; if (no process eligible to execute) idle the machine; } remove chosen process from run queue; switch context to that of chosen process, resume its execution. } 95. Define page. The memory management hardware divides physical memory into a set of equal sized blocks called pages. 96. What are the information available in page table entry? The page table entries contain machine dependent information such as permission bits to allow reading or writing of the page. 97. What are the different types of pipes? Unnamed pipe, and named pipe(fifo) 98. How will you open and close the devices? The devices are opened or closed by using the ordinary file functions open and close, because the devices are also treated as a file. 99. What is the difference between close and shutdown? In socket communication the close function closes both the connections. The shutdown function closes only the required connection. 100.Write down the system calls used for TCP communication. socket, bind, listen, accept, connect,send, recv, close.

15 Descriptive questions and key 1. Explain in detail about the high level features of UNIX system a. List down the file system characteristics b. Explain in detail about the file system c. Explain about process control d. Explain about building block primitives. 2. Explain the architecture of UNIX operating system. Draw the block diagram of system kernel o Explain about process control subsystem o Explain about file subsystem, buffer cache. o Explain about IPC, scheduler, memory management o Explain about drivers and interfaces. 3. Explain in detail about the processes Explain about process, process creation, process termination Explain basic process states Explain process state transition diagram Explain about context switch 4. Explain the scenarios for retrieval of a buffer. List down the different scenarios for retrieval a buffer Explain each scenario with diagram. Explain the algorithms getblk, brelse, bread, bwrite, breada Advantages and disadvantages of the buffer cache 5. Explain the manipulation of the process address space Explain the following Locking and unlocking a region Allocating a region with algorithm Attaching a region to a process with algorithm Changing the size of region with algorithm Loading a region freeing a region Freeing a region Detaching a region from process Duplicating a region 6. Explain in detail about process creation Explain process creation and list of operations during fork Algorithm for fork and explanation Example with explanation 7. Explain in detail about process termination a. Explain process termination b. Algorithm for process termination

16 c. Explanation of awaiting process termination d. Algorithm for wait e. Example 8. Explain in detail about process scheduling Explain the following System configuration System calls and driver interface Open and closing device files Read and write operations Strategy interface ioctl function Interrupt handlers 9. Explain in detail about process states and transitions. Explain the following List down the states Draw the state transition diagram Explain the diagram Explain the data structures related to process 10. Explain in detail about the manipulation of process address space Explain the following operations with necessary algorithms Locking and unlocking a region Allocating a region Changing the size of region Loading a region Freeing a region Detaching a region 11. Explain in detail about saving the context of a process. Explain the following in detail Interrupts and exceptions System call interface Context switch Copying data between system and user address space 12. Explain in detail about the context of a process Explain in detail about the following components with necessary data structures User level context Register level context System level context 13. Explain the system calls that return file descriptors as output Explain the following system calls with the necessary algorithms and example Open

17 Creat Dup Pipe Close 14. Explain the functions related to file I/O Explain the following functions in detail with algorithm Read Write Lseek 15. Explain in detail about the functions which are used to manipulate the file s tree structure Explain the functions chdir and chown with necessay algorithms and example. 16. Explain in detail about pipes Explain about pipe system call Explain about opening a named pipe Explain about reading and writing pipes Explain about closing pipes with example 17. Explain in detail about mounting and un mounting a file system Explain about the system calls mount and unmount Explain the entries of mount table Explain in detail about algorithm for mounting Explain in detail about algorithm for unmounting 18. Explain in detail about swapping Explain about allocation of swap space Explain in detail about swapping processes out o Explain fork swap and expansion swap Explain swapping processes in with algorithm 19. Explain in detail about demand paging Explain in detail about data structures for demand paging Explain fork and exec in a paging system Explain page stealer process 20. Explain in detail about page fault and fault handlers Define page fault o Explain validity fault handler with algorithm o Explain protection fault handler with algorithm 21. Explain in detail about the driver interfaces Explain about System configuration

18 System calls and driver interface o Explain about open and close a device o Explain about read and write a device o Explain about ioctl function 22. Explain in detail about terminal drivers Define terminal drivers List down the functions of line discipline Explain about clists Explain the terminal driver in canonical mode Explain the terminal driver in raw mode Explain in detail about terminal polling and logging in 23. Explain in detail about process tracing Explain the structure of debugging process Explain the ptrace system call with example Explain the advantages and disadvantages about ptrace function 24. Explain in detail about system V IPC mechanisms Write down the purpose of system V IPC mechanisms List down different IPC mechanisms Explain in detail about the above mechanisms with necessary algorithms 25. Explain in detail about network communication Explain in detail about the socket communications Explain the system calls related to UDP and TCP communications Explain the steps for communication between devices using the above sockets

Department of Computer Science and Technology, UTU 2014

Department of Computer Science and Technology, UTU 2014 Short Questions 060010601 Unix Internals Unit 1 : Introduction and Overview of UNIX 1. What were the goals of Multics System? 2. List out the levels in which UNIX system architecture is divided. 3. Which

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR 2011-2012 / ODD SEMESTER Question Bank Subject Code/Name: CS1005-Unix Internals Year / Sem: IV / VII UNIT I- GENERAL

More information

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI 621 105 DEPARTMENT OF COMPUTER SCIENCE AND ENGG. Cs 1005- UNIX INTERNALS UNIT

More information

PROCESS STATES AND TRANSITIONS:

PROCESS STATES AND TRANSITIONS: The kernel contains a process table with an entry that describes the state of every active process in the system. The u area contains additional information that controls the operation of a process. The

More information

PROCESS CONTROL: PROCESS CREATION: UNIT-VI PROCESS CONTROL III-II R

PROCESS CONTROL: PROCESS CREATION: UNIT-VI PROCESS CONTROL III-II R PROCESS CONTROL: This will describe the use and implementation of the system calls that control the process context. The fork system call creates a new process, the exit call terminates process execution,

More information

UNIX Memory Management Interview Questions and Answers

UNIX Memory Management Interview Questions and Answers UNIX Memory Management Interview Questions and Answers 1. What is the difference between Swapping and Paging? Swapping: Whole process is moved from the swap device to the main memory for execution. Process

More information

ADVANCED OPERATING SYSTEMS

ADVANCED OPERATING SYSTEMS ADVANCED OPERATING SYSTEMS UNIT 2 FILE AND DIRECTORY I/O BY MR.PRASAD SAWANT Prof.Prasad Sawant,Assitiant Professor,Dept. Of CS PCCCS Chichwad Prof.Prasad Sawant,Assitiant Professor,Dept. Of CS PCCCS Chichwad

More information

Babu Madhav Institute of Information Technology, UTU

Babu Madhav Institute of Information Technology, UTU 5 Years Integrated M.Sc.(IT) Semester 6 Question Bank 060010601 UNIX Internals Unit 1: Introduction and Overview of UNIX Answer following in short 1. What is system call? 2. Who are principal designer

More information

CS2028 -UNIX INTERNALS

CS2028 -UNIX INTERNALS DHANALAKSHMI SRINIVASAN INSTITUTE OF RESEARCH AND TECHNOLOGY,SIRUVACHUR-621113. CS2028 -UNIX INTERNALS PART B UNIT 1 1. Explain briefly details about History of UNIX operating system? In 1965, Bell Telephone

More information

INTERNAL REPRESENTATION OF FILES:

INTERNAL REPRESENTATION OF FILES: INTERNAL REPRESENTATION OF FILES: Every file on a UNIX system has a unique inode. The inode contains the information necessary for a process to access a file, such as file ownership, access rights, file

More information

Processes. Process Management Chapter 3. When does a process gets created? When does a process gets terminated?

Processes. Process Management Chapter 3. When does a process gets created? When does a process gets terminated? Processes Process Management Chapter 3 1 A process is a program in a state of execution (created but not terminated) Program is a passive entity one on your disk (survivor.class, kelly.out, ) Process is

More information

Logical disks. Bach 2.2.1

Logical disks. Bach 2.2.1 Logical disks Bach 2.2.1 Physical disk is divided into partitions or logical disks Logical disk linear sequence of fixed size, randomly accessible, blocks disk device driver maps underlying physical storage

More information

1.Define signal? NOV DEC 2011 MAY JUNE 2011

1.Define signal? NOV DEC 2011 MAY JUNE 2011 SEM/ YEAR : VI / III CS2028 UNIX INTERNALS UNIT IV THE STRUCTURE OF PROCESSES PART A 1.Define signal? NOV DEC 2011 MAY JUNE 2011 A signal is an asynchronous event which is delivered to a process. 2. Define

More information

Process Description and Control. Chapter 3

Process Description and Control. Chapter 3 Process Description and Control Chapter 3 Major Requirements of an Operating System Interleave the execution of many processes to maximize processor utilization while providing reasonable response time

More information

PROCESS CONTROL BLOCK TWO-STATE MODEL (CONT D)

PROCESS CONTROL BLOCK TWO-STATE MODEL (CONT D) MANAGEMENT OF APPLICATION EXECUTION PROCESS CONTROL BLOCK Resources (processor, I/O devices, etc.) are made available to multiple applications The processor in particular is switched among multiple applications

More information

ROEVER ENGINEERING COLLEGE Elambalur,Perambalur DEPARTMENT OF CSE UI UNIT-I

ROEVER ENGINEERING COLLEGE Elambalur,Perambalur DEPARTMENT OF CSE UI UNIT-I ROEVER ENGINEERING COLLEGE Elambalur,Perambalur-621212 DEPARTMENT OF CSE UI UNIT-I 1. Explain the details about UNIX system Architecture (12) UNIX System Architecture: Three Level of the system are User:

More information

Process Description and Control. Chapter 3

Process Description and Control. Chapter 3 Process Description and Control Chapter 3 Contents Process states Process description Process control Unix process management Process From processor s point of view execute instruction dictated by program

More information

Announcement. Exercise #2 will be out today. Due date is next Monday

Announcement. Exercise #2 will be out today. Due date is next Monday Announcement Exercise #2 will be out today Due date is next Monday Major OS Developments 2 Evolution of Operating Systems Generations include: Serial Processing Simple Batch Systems Multiprogrammed Batch

More information

UNIT I INTRODUCTION TO UNIX & FILE SYSTEM

UNIT I INTRODUCTION TO UNIX & FILE SYSTEM INTRODUCTION TO UNIX & FILE SYSTEM Part A 1. What is UNIX? UNIX(Uniplexed Information Computing System) it is an operating system was developed in Early 1970 at Bell Labs. It was initially a character

More information

Process Concepts. CSC400 - Operating Systems. 3. Process Concepts. J. Sumey

Process Concepts. CSC400 - Operating Systems. 3. Process Concepts. J. Sumey CSC400 - Operating Systems 3. Process Concepts J. Sumey Overview Concurrency Processes & Process States Process Accounting Interrupts & Interrupt Processing Interprocess Communication CSC400 - Process

More information

Linux Operating System

Linux Operating System Linux Operating System Dept. of Computer Science & Engineering 1 History Linux is a modern, free operating system based on UNIX standards. First developed as a small but self-contained kernel in 1991 by

More information

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System Mid Term from Feb-2005 to Nov 2012 CS604- Operating System Latest Solved from Mid term Papers Resource Person Hina 1-The problem with priority scheduling algorithm is. Deadlock Starvation (Page# 84) Aging

More information

Design Overview of the FreeBSD Kernel CIS 657

Design Overview of the FreeBSD Kernel CIS 657 Design Overview of the FreeBSD Kernel CIS 657 Organization of the Kernel Machine-independent 86% of the kernel (80% in 4.4BSD) C code Machine-dependent 14% of kernel Only 0.6% of kernel in assembler (2%

More information

Design Overview of the FreeBSD Kernel. Organization of the Kernel. What Code is Machine Independent?

Design Overview of the FreeBSD Kernel. Organization of the Kernel. What Code is Machine Independent? Design Overview of the FreeBSD Kernel CIS 657 Organization of the Kernel Machine-independent 86% of the kernel (80% in 4.4BSD) C C code Machine-dependent 14% of kernel Only 0.6% of kernel in assembler

More information

* What are the different states for a task in an OS?

* What are the different states for a task in an OS? * Kernel, Services, Libraries, Application: define the 4 terms, and their roles. The kernel is a computer program that manages input/output requests from software, and translates them into data processing

More information

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & Commerce, Aurangabad. Department of Computer Science. Academic Year

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & Commerce, Aurangabad. Department of Computer Science. Academic Year Dr. Rafiq Zakaria Campus Maulana Azad College of Arts, Science & Commerce, Aurangabad Department of Computer Science Academic Year 2015-16 MCQs on Operating System Sem.-II 1.What is operating system? a)

More information

B. V. Patel Institute of Business Management, Computer &Information Technology, UTU

B. V. Patel Institute of Business Management, Computer &Information Technology, UTU BCA-3 rd Semester 030010304-Fundamentals Of Operating Systems Unit: 1 Introduction Short Answer Questions : 1. State two ways of process communication. 2. State any two uses of operating system according

More information

3.1 Introduction. Computers perform operations concurrently

3.1 Introduction. Computers perform operations concurrently PROCESS CONCEPTS 1 3.1 Introduction Computers perform operations concurrently For example, compiling a program, sending a file to a printer, rendering a Web page, playing music and receiving e-mail Processes

More information

UNIT III- INTER PROCESS COMMUNICATIONS Part A

UNIT III- INTER PROCESS COMMUNICATIONS Part A UNIT III- INTER PROCESS COMMUNICATIONS Part A 1 What are the different communications supported by UNIX? Inter process communication and network communication 2 What do you mean by Inter process communication?

More information

(MCQZ-CS604 Operating Systems)

(MCQZ-CS604 Operating Systems) command to resume the execution of a suspended job in the foreground fg (Page 68) bg jobs kill commands in Linux is used to copy file is cp (Page 30) mv mkdir The process id returned to the child process

More information

Process Description and Control. Chapter 3

Process Description and Control. Chapter 3 Process Description and Control 1 Chapter 3 2 Processes Working definition: An instance of a program Processes are among the most important abstractions in an OS all the running software on a computer,

More information

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017 ECE 550D Fundamentals of Computer Systems and Engineering Fall 2017 The Operating System (OS) Prof. John Board Duke University Slides are derived from work by Profs. Tyler Bletsch and Andrew Hilton (Duke)

More information

UNIT I Linux Utilities

UNIT I Linux Utilities UNIT I Linux Utilities 1. a) How does Linux differ from Unix? Discuss the features of Linux. 5M b) Explain various text processing utilities, with a suitable example for each. 5M 2. a) Explain briefly

More information

Module A: The FreeBSD System

Module A: The FreeBSD System Module A: The FreeBSD System History Design Principles Programmer Interface User Interface Process Management Memory Management File System I/O System Interprocess Communication A.1 History First developed

More information

Module A: The FreeBSD System

Module A: The FreeBSD System Module A: The FreeBSD System History Design Principles Programmer Interface User Interface Process Management Memory Management File System I/O System Interprocess Communication A.1 History First developed

More information

Process Description and Control. Major Requirements of an Operating System

Process Description and Control. Major Requirements of an Operating System Process Description and Control Chapter 3 1 Major Requirements of an Operating System Interleave the execution of several processes to maximize processor utilization while providing reasonable response

More information

Major Requirements of an Operating System Process Description and Control

Major Requirements of an Operating System Process Description and Control Major Requirements of an Operating System Process Description and Control Chapter 3 Interleave the execution of several processes to maximize processor utilization while providing reasonable response time

More information

Chap 4, 5: Process. Dongkun Shin, SKKU

Chap 4, 5: Process. Dongkun Shin, SKKU Chap 4, 5: Process 1 Process Concept Job A bundle of program and data to be executed An entity before submission for execution Process (= running program) An entity that is registered to kernel for execution

More information

Unix Processes. What is a Process?

Unix Processes. What is a Process? Unix Processes Process -- program in execution shell spawns a process for each command and terminates it when the command completes Many processes all multiplexed to a single processor (or a small number

More information

Appendix A: FreeBSD. Operating System Concepts 9 th Edition

Appendix A: FreeBSD. Operating System Concepts 9 th Edition Appendix A: FreeBSD Operating System Concepts 9 th Edition Silberschatz, Galvin and Gagne 2013 Module A: The FreeBSD System UNIX History Design Principles Programmer Interface User Interface Process Management

More information

Process. Program Vs. process. During execution, the process may be in one of the following states

Process. Program Vs. process. During execution, the process may be in one of the following states What is a process? What is process scheduling? What are the common operations on processes? How to conduct process-level communication? How to conduct client-server communication? Process is a program

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad -500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : ACS010 Class : III

More information

CS2506 Quick Revision

CS2506 Quick Revision CS2506 Quick Revision OS Structure / Layer Kernel Structure Enter Kernel / Trap Instruction Classification of OS Process Definition Process Context Operations Process Management Child Process Thread Process

More information

Processes and Non-Preemptive Scheduling. Otto J. Anshus

Processes and Non-Preemptive Scheduling. Otto J. Anshus Processes and Non-Preemptive Scheduling Otto J. Anshus Threads Processes Processes Kernel An aside on concurrency Timing and sequence of events are key concurrency issues We will study classical OS concurrency

More information

Major Requirements of an OS

Major Requirements of an OS Process CSCE 351: Operating System Kernels Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization while providing reasonable response time Allocate

More information

Operating System Concepts

Operating System Concepts Chapter 9: Virtual-Memory Management 9.1 Silberschatz, Galvin and Gagne 2005 Chapter 9: Virtual Memory Background Demand Paging Copy-on-Write Page Replacement Allocation of Frames Thrashing Memory-Mapped

More information

Module 1. Introduction:

Module 1. Introduction: Module 1 Introduction: Operating system is the most fundamental of all the system programs. It is a layer of software on top of the hardware which constitutes the system and manages all parts of the system.

More information

Overview. Over the next four weeks, we will look at these topics: Building Blocks. Advanced Authentication Issues.

Overview. Over the next four weeks, we will look at these topics: Building Blocks. Advanced Authentication Issues. Overview Over the next four weeks, we will look at these topics: Building Blocks Advanced Authentication Issues Security Overview Storage and its abstraction Virtualization and appliances Data Replication

More information

Processes. Dr. Yingwu Zhu

Processes. Dr. Yingwu Zhu Processes Dr. Yingwu Zhu Process Growing Memory Stack expands automatically Data area (heap) can grow via a system call that requests more memory - malloc() in c/c++ Entering the kernel (mode) Hardware

More information

Linux System Administration

Linux System Administration System Processes Objective At the conclusion of this module, the student will be able to: Describe and define a process Identify a process ID, the parent process and the child process Learn the PID for

More information

PROCESS MANAGEMENT. Operating Systems 2015 Spring by Euiseong Seo

PROCESS MANAGEMENT. Operating Systems 2015 Spring by Euiseong Seo PROCESS MANAGEMENT Operating Systems 2015 Spring by Euiseong Seo Today s Topics Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication

More information

IT 540 Operating Systems ECE519 Advanced Operating Systems

IT 540 Operating Systems ECE519 Advanced Operating Systems IT 540 Operating Systems ECE519 Advanced Operating Systems Prof. Dr. Hasan Hüseyin BALIK (3 rd Week) (Advanced) Operating Systems 3. Process Description and Control 3. Outline What Is a Process? Process

More information

Process Description and Control

Process Description and Control Process Description and Control Chapter 3 Muhammad Adri, MT 1 Major Requirements of an Operating System Interleave the execution of several processes to maximize processor utilization while providing reasonable

More information

QUESTION BANK UNIT I

QUESTION BANK UNIT I QUESTION BANK Subject Name: Operating Systems UNIT I 1) Differentiate between tightly coupled systems and loosely coupled systems. 2) Define OS 3) What are the differences between Batch OS and Multiprogramming?

More information

Operating System Review

Operating System Review COP 4225 Advanced Unix Programming Operating System Review Chi Zhang czhang@cs.fiu.edu 1 About the Course Prerequisite: COP 4610 Concepts and Principles Programming System Calls Advanced Topics Internals,

More information

11/3/71 SYS BREAK (II)

11/3/71 SYS BREAK (II) 11/3/71 SYS BREAK (II) break -- set program break SYNOPSIS sys break; addr / break = 17. break sets the system s idea of the highest location used by the program to addr. Locations greater than addr and

More information

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files CSC209 Review CSC209: Software tools Unix files and directories permissions utilities/commands Shell programming quoting wild cards files ... and systems programming C basic syntax functions arrays structs

More information

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs.

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs. CSC209 Review CSC209: Software tools Unix files and directories permissions utilities/commands Shell programming quoting wild cards files... and systems programming C basic syntax functions arrays structs

More information

REVIEW OF COMMONLY USED DATA STRUCTURES IN OS

REVIEW OF COMMONLY USED DATA STRUCTURES IN OS REVIEW OF COMMONLY USED DATA STRUCTURES IN OS NEEDS FOR EFFICIENT DATA STRUCTURE Storage complexity & Computation complexity matter Consider the problem of scheduling tasks according to their priority

More information

Computer Systems II. First Two Major Computer System Evolution Steps

Computer Systems II. First Two Major Computer System Evolution Steps Computer Systems II Introduction to Processes 1 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent processes) 2 1 At First (1945 1955) In the beginning,

More information

Templates what and why? Beware copying classes! Templates. A simple example:

Templates what and why? Beware copying classes! Templates. A simple example: Beware copying classes! Templates what and why? class A { private: int data1,data2[5]; float fdata; public: // methods etc. } A a1,a2; //some work initializes a1... a2=a1; //will copy all data of a2 into

More information

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100 GATE- 2016-17 Postal Correspondence 1 Operating Systems Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,

More information

CS604 Final term Paper Fall (2012)

CS604 Final term Paper Fall (2012) CS604- Operating Systems Solved Subjective From Final term Papers 10 July,2013 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS604 Final term Paper Fall (2012) 1. Write the names of common

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad -500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : A70511 (R15) Class

More information

W4118 Operating Systems. Junfeng Yang

W4118 Operating Systems. Junfeng Yang W4118 Operating Systems Junfeng Yang What is a process? Outline Process dispatching Common process operations Inter-process Communication What is a process Program in execution virtual CPU Process: an

More information

CS399 New Beginnings. Jonathan Walpole

CS399 New Beginnings. Jonathan Walpole CS399 New Beginnings Jonathan Walpole OS-Related Hardware & Software The Process Concept 2 Lecture 2 Overview OS-Related Hardware & Software - complications in real systems - brief introduction to memory

More information

PROCESS CONCEPTS. Process Concept Relationship to a Program What is a Process? Process Lifecycle Process Management Inter-Process Communication 2.

PROCESS CONCEPTS. Process Concept Relationship to a Program What is a Process? Process Lifecycle Process Management Inter-Process Communication 2. [03] PROCESSES 1. 1 OUTLINE Process Concept Relationship to a Program What is a Process? Process Lifecycle Creation Termination Blocking Process Management Process Control Blocks Context Switching Threads

More information

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering) A. Multiple Choice Questions (60 questions) Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering) Unit-I 1. What is operating system? a) collection of programs that manages hardware

More information

Processes. Operating System CS 217. Supports virtual machines. Provides services: User Process. User Process. OS Kernel. Hardware

Processes. Operating System CS 217. Supports virtual machines. Provides services: User Process. User Process. OS Kernel. Hardware es CS 217 Operating System Supports virtual machines Promises each process the illusion of having whole machine to itself Provides services: Protection Scheduling Memory management File systems Synchronization

More information

What is an Operating System? A Whirlwind Tour of Operating Systems. How did OS evolve? How did OS evolve?

What is an Operating System? A Whirlwind Tour of Operating Systems. How did OS evolve? How did OS evolve? What is an Operating System? A Whirlwind Tour of Operating Systems Trusted software interposed between the hardware and application/utilities to improve efficiency and usability Most computing systems

More information

Operating Systems. Review ENCE 360

Operating Systems. Review ENCE 360 Operating Systems Review ENCE 360 High level Concepts What are three conceptual pieces fundamental to operating systems? High level Concepts What are three conceptual pieces fundamental to operating systems?

More information

(In columns, of course.)

(In columns, of course.) CPS 310 first midterm exam, 10/9/2013 Your name please: Part 1. Fun with forks (a) What is the output generated by this program? In fact the output is not uniquely defined, i.e., it is not always the same.

More information

Processes and Threads. Processes and Threads. Processes (2) Processes (1)

Processes and Threads. Processes and Threads. Processes (2) Processes (1) Processes and Threads (Topic 2-1) 2 홍성수 Processes and Threads Question: What is a process and why is it useful? Why? With many things happening at once in a system, need some way of separating them all

More information

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad-000 DEPARTMENT OF INFORMATION TECHNOLOGY Academic year 0-0 QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : A0 Class : III B. Tech I

More information

Chapter 3 Process Description and Control

Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles Chapter 3 Process Description and Control Seventh Edition By William Stallings Operating Systems: Internals and Design Principles The concept of process

More information

Processes. OS Structure. OS Structure. Modes of Execution. Typical Functions of an OS Kernel. Non-Kernel OS. COMP755 Advanced Operating Systems

Processes. OS Structure. OS Structure. Modes of Execution. Typical Functions of an OS Kernel. Non-Kernel OS. COMP755 Advanced Operating Systems OS Structure Processes COMP755 Advanced Operating Systems An OS has many parts. The Kernel is the core of the OS. It controls the execution of the system. Many OS features run outside of the kernel, such

More information

Getting to know you. Anatomy of a Process. Processes. Of Programs and Processes

Getting to know you. Anatomy of a Process. Processes. Of Programs and Processes Getting to know you Processes A process is an abstraction that supports running programs A sequential stream of execution in its own address space A process is NOT the same as a program! So, two parts

More information

Address spaces and memory management

Address spaces and memory management Address spaces and memory management Review of processes Process = one or more threads in an address space Thread = stream of executing instructions Address space = memory space used by threads Address

More information

Mon Sep 17, 2007 Lecture 3: Process Management

Mon Sep 17, 2007 Lecture 3: Process Management Mon Sep 17, 2007 Lecture 3: Process Management September 19, 2007 1 Review OS mediates between hardware and user software QUIZ: Q: Name three layers of a computer system where the OS is one of these layers.

More information

Use of interaction networks in teaching Minix

Use of interaction networks in teaching Minix Use of interaction networks in teaching Minix Paul Ashton, Carl Cerecke, Craig McGeachie, Stuart Yeates Department of Computer Science University of Canterbury TR-COSC 08/95, Sep 1995 The contents of this

More information

ELEC 377 Operating Systems. Week 1 Class 2

ELEC 377 Operating Systems. Week 1 Class 2 Operating Systems Week 1 Class 2 Labs vs. Assignments The only work to turn in are the labs. In some of the handouts I refer to the labs as assignments. There are no assignments separate from the labs.

More information

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017 CS 471 Operating Systems Yue Cheng George Mason University Fall 2017 Outline o Process concept o Process creation o Process states and scheduling o Preemption and context switch o Inter-process communication

More information

CS 333 Introduction to Operating Systems Class 2 OS-Related Hardware & Software The Process Concept

CS 333 Introduction to Operating Systems Class 2 OS-Related Hardware & Software The Process Concept CS 333 Introduction to Operating Systems Class 2 OS-Related Hardware & Software The Process Concept Jonathan Walpole Computer Science Portland State University 1 Lecture 2 overview OS-Related Hardware

More information

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester Operating System: Chap13 I/O Systems National Tsing-Hua University 2016, Fall Semester Outline Overview I/O Hardware I/O Methods Kernel I/O Subsystem Performance Application Interface Operating System

More information

OPERATING SYSTEMS. After A.S.Tanenbaum, Modern Operating Systems, 3rd edition. Uses content with permission from Assoc. Prof. Florin Fortis, PhD

OPERATING SYSTEMS. After A.S.Tanenbaum, Modern Operating Systems, 3rd edition. Uses content with permission from Assoc. Prof. Florin Fortis, PhD OPERATING SYSTEMS #2 After A.S.Tanenbaum, Modern Operating Systems, 3rd edition Uses content with permission from Assoc. Prof. Florin Fortis, PhD INTRODUCTION Operating systems structure OPERATING SYSTEM

More information

SMD149 - Operating Systems

SMD149 - Operating Systems SMD149 - Operating Systems Roland Parviainen November 3, 2005 1 / 45 Outline Overview 2 / 45 Process (tasks) are necessary for concurrency Instance of a program in execution Next invocation of the program

More information

Operating Systems Overview. Chapter 2

Operating Systems Overview. Chapter 2 Operating Systems Overview Chapter 2 Operating System A program that controls the execution of application programs An interface between the user and hardware Masks the details of the hardware Layers and

More information

ENGR 3950U / CSCI 3020U Midterm Exam SOLUTIONS, Fall 2012 SOLUTIONS

ENGR 3950U / CSCI 3020U Midterm Exam SOLUTIONS, Fall 2012 SOLUTIONS SOLUTIONS ENGR 3950U / CSCI 3020U (Operating Systems) Midterm Exam October 23, 2012, Duration: 80 Minutes (10 pages, 12 questions, 100 Marks) Instructor: Dr. Kamran Sartipi Question 1 (Computer Systgem)

More information

Chapter 13: I/O Systems

Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance Objectives Explore the structure of an operating

More information

Processes, PCB, Context Switch

Processes, PCB, Context Switch THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering EIE 272 CAOS Operating Systems Part II Processes, PCB, Context Switch Instructor Dr. M. Sakalli enmsaka@eie.polyu.edu.hk

More information

Operating Systems. Lecture 05

Operating Systems. Lecture 05 Operating Systems Lecture 05 http://web.uettaxila.edu.pk/cms/sp2013/seosbs/ February 25, 2013 Process Scheduling, System Calls Execution (Fork,Wait,Exit,Exec), Inter- Process Communication Schedulers Long

More information

Process Description and Control

Process Description and Control Process Description and Control B.Ramamurthy 1/28/02 B.Ramamurthy 1 Introduction The fundamental task of any operating system is process management. OS must allocate resources to processes, enable sharing

More information

Lecture Topics. Announcements. Today: Threads (Stallings, chapter , 4.6) Next: Concurrency (Stallings, chapter , 5.

Lecture Topics. Announcements. Today: Threads (Stallings, chapter , 4.6) Next: Concurrency (Stallings, chapter , 5. Lecture Topics Today: Threads (Stallings, chapter 4.1-4.3, 4.6) Next: Concurrency (Stallings, chapter 5.1-5.4, 5.7) 1 Announcements Make tutorial Self-Study Exercise #4 Project #2 (due 9/20) Project #3

More information

UNIX rewritten using C (Dennis Ritchie) UNIX (v7) released (ancestor of most UNIXs).

UNIX rewritten using C (Dennis Ritchie) UNIX (v7) released (ancestor of most UNIXs). UNIX: HISTORY: 1. 1969 UNIX developed (Ken Thompson). 2. 1972 UNIX rewritten using C (Dennis Ritchie). 3. 1976 UNIX (v6) released for commercial use. 4. 1978 UNIX (v7) released (ancestor of most UNIXs).

More information

CSC209 Review. Yeah! We made it!

CSC209 Review. Yeah! We made it! CSC209 Review Yeah! We made it! 1 CSC209: Software tools Unix files and directories permissions utilities/commands Shell programming quoting wild cards files 2 ... and C programming... C basic syntax functions

More information

Operating Systems Process description and control

Operating Systems Process description and control Operating Systems Process description and control Mathieu Delalandre (PhD) François-Rabelais University, Tours city, France mathieu.delalandre@univ-tours.fr Process description and control (1) Main memory

More information

ADVANCED OPERATING SYSTEMS

ADVANCED OPERATING SYSTEMS ADVANCED OPERATING SYSTEMS UNIT I INTRODUCTION TO UNIX/LINUX KERNEL BY MR.PRASAD SAWANT Prof.Prasad Sawant,Assitiant Professor,Dept. Of CS PCCCS PREREQUISITES: 1. Working knowledge of C programming. 2.

More information

Embedded System Curriculum

Embedded System Curriculum Embedded System Curriculum ADVANCED C PROGRAMMING AND DATA STRUCTURE (Duration: 25 hrs) Introduction to 'C' Objectives of C, Applications of C, Relational and logical operators, Bit wise operators, The

More information

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University l Chapter 10: File System l Chapter 11: Implementing File-Systems l Chapter 12: Mass-Storage

More information

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - III Processes. Louisiana State University. Processes. September 1 st, 2009

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - III Processes. Louisiana State University. Processes. September 1 st, 2009 CSC 4103 - Operating Systems Fall 2009 Lecture - III Processes Tevfik Ko!ar Louisiana State University September 1 st, 2009 1 Roadmap Processes Basic Concepts Process Creation Process Termination Context

More information