(MCQZ-CS604 Operating Systems)

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

Question No: 1 (Marks: 1) - Please choose one A computer system that allows only one user to use the computer at a given time is known as:

CS604- Operating Systems Solved MCQS From Midterm Papers

EXAMS CS604- OPERATING SYSTEMS

Operating Systems Comprehensive Exam. Spring Student ID # 3/16/2006

Lecture 2 Process Management

OPERATING SYSTEMS CS3502 Spring Processor Scheduling. Chapter 5

OPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:

CHAPTER 2: PROCESS MANAGEMENT

MARUTHI SCHOOL OF BANKING (MSB)

CS604 - Operating System Solved Subjective Midterm Papers For Midterm Exam Preparation

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

Department of Computer applications. [Part I: Medium Answer Type Questions]

CHAPTER NO - 1 : Introduction:

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

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.

Chapter 5: CPU Scheduling

8: Scheduling. Scheduling. Mark Handley

Operating Systems. Figure: Process States. 1 P a g e

CS370 Operating Systems

Operating Systems Comprehensive Exam. Spring Student ID # 3/20/2013

Unix Processes. What is a Process?

CSE 153 Design of Operating Systems

ALL the assignments (A1, A2, A3) and Projects (P0, P1, P2) we have done so far.

Announcements. Program #1. Reading. Due 2/15 at 5:00 pm. Finish scheduling Process Synchronization: Chapter 6 (8 th Ed) or Chapter 7 (6 th Ed)

CPU Scheduling. Rab Nawaz Jadoon. Assistant Professor DCS. Pakistan. COMSATS, Lahore. Department of Computer Science

QUESTION BANK UNIT I

SAMPLE MIDTERM QUESTIONS

Chendu College of Engineering & Technology

CS370 Operating Systems Midterm Review

Lecture Topics. Announcements. Today: Uniprocessor Scheduling (Stallings, chapter ) Next: Advanced Scheduling (Stallings, chapter

Preview. Process Scheduler. Process Scheduling Algorithms for Batch System. Process Scheduling Algorithms for Interactive System

Process- Concept &Process Scheduling OPERATING SYSTEMS

Exam Guide COMPSCI 386

Lecture 17: Threads and Scheduling. Thursday, 05 Nov 2009

Course Syllabus. Operating Systems

MC7204 OPERATING SYSTEMS

CS604 Final term Paper Fall (2012)

Techno India Batanagar Department of Computer Science & Engineering. Model Questions. Multiple Choice Questions:

1.1 CPU I/O Burst Cycle

CMPS 111 Spring 2003 Midterm Exam May 8, Name: ID:

Operating Systems Comprehensive Exam. Spring Student ID # 2/17/2011

Lecture 5 / Chapter 6 (CPU Scheduling) Basic Concepts. Scheduling Criteria Scheduling Algorithms

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Operating Systems: Quiz2 December 15, Class: No. Name:

Indian Institute of Technology, Kharagpur

COSC243 Part 2: Operating Systems

UNIT 2 Basic Concepts of CPU Scheduling. UNIT -02/Lecture 01

Operating System Study Notes Department of Computer science and Engineering Prepared by TKG, SM and MS

Problem Set: Processes

Scheduling in the Supermarket

CPU Scheduling. Daniel Mosse. (Most slides are from Sherif Khattab and Silberschatz, Galvin and Gagne 2013)

Operating Systems (1DT020 & 1TT802)

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Lecture 9: Midterm Review

CSI3131 Final Exam Review

CLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS UNIT I OPERATING SYSTEMS OVERVIEW

CS604- OPERATING SYSTEM SOLVED SUBJECTIVE FOR MID TERM EXAM

PROCESSES & THREADS. Charles Abzug, Ph.D. Department of Computer Science James Madison University Harrisonburg, VA Charles Abzug

Processes and Threads

Chapter 2 Processes and Threads. Interprocess Communication Race Conditions

Processes. Process Scheduling, Process Synchronization, and Deadlock will be discussed further in Chapters 5, 6, and 7, respectively.

UNIT:2. Process Management

Properties of Processes

Unit 3 : Process Management

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

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

CPU Scheduling. Basic Concepts. Histogram of CPU-burst Times. Dispatcher. CPU Scheduler. Alternating Sequence of CPU and I/O Bursts

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

5/8/2012. Creating and Changing Directories Chapter 7

OPERATING SYSTEMS: Lesson 4: Process Scheduling

5/8/2012. Controlling User Processes Chapter 10

Announcements. Program #1. Program #0. Reading. Is due at 9:00 AM on Thursday. Re-grade requests are due by Monday at 11:59:59 PM.

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Operating Systems Comprehensive Exam. Fall Student ID # 10/31/2013

Scheduling. The Basics

Chapter 3: Process Concept

Chapter 3: Process Concept

CS370 Operating Systems

Chap2: Operating-System Structures

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

OS 1 st Exam Name Solution St # (Q1) (19 points) True/False. Circle the appropriate choice (there are no trick questions).

( D ) 4. Which is not able to solve the race condition? (A) Test and Set Lock (B) Semaphore (C) Monitor (D) Shared memory

Chapter 3: Processes. Operating System Concepts 8th Edition, modified by Stewart Weiss

TDIU25: Operating Systems II. Processes, Threads and Scheduling

Chapter 3: Process Concept

CS2506 Quick Revision

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

Operating System Concepts Ch. 5: Scheduling

CS6401- OPERATING SYSTEM

CS370 Operating Systems

Scheduling of processes

Maximum CPU utilization obtained with multiprogramming. CPU I/O Burst Cycle Process execution consists of a cycle of CPU execution and I/O wait

Chapter 6: CPU Scheduling

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

Uniprocessor Scheduling. Aim of Scheduling

Uniprocessor Scheduling. Aim of Scheduling. Types of Scheduling. Long-Term Scheduling. Chapter 9. Response time Throughput Processor efficiency

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

SMD149 - Operating Systems

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

Transcription:

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 after successful fork system call execution is. 0 (Page 40) 1 2 3 In addressing, the recipient is not required to name the sender. Symmetric Asymmetric (Page 47) Both symmetric and asymmetric None of the given options A solution to the critical section problem must satisfy the following requirements Progress Mutual exclusion Bounded Waiting All of these (Page 101) Typically the execlp system call is used after a fork system call. True (Page 39) You can create a threads by using the pthread_create() call. True (Page 76) The interval from the time of submission to the time of completion is the Turnaround time (Page 83) Waiting time

Response time None of all these Each process must first request permission to enter its critical section. The section of code implementing this request is called the entry section (Page 100) Critical Section remainder section None of all these IPC provides a mechanism to allow processes to communicate and to synchronize their actions without sharing the same Address space (Page 46) Address Name Address ID None of all these Linux is a version of operating system. OS/2 Windows Unix click here for detail None of the above Current working directory can be accessed using --------- Command.. (dot) # ( hash ) / (slash) ~ (tilt) (Page 25) Mkfifo() is a. Library Call (Page 58) Command Directory None of Above command gives a snapshot of the current processes. ps (Page 66) top who ls Time interval when the I/O Devices are accessed is known as --------. CPU Burst

IO Burst Click here for detail Time Slice None of Above The process of switching from one process to another is called ---------------. Context switching (Page 34) scheduling quantum period latency directory includes essential system boot files including the kernel image. /bin /boot (Page 26) /dev /etc scheduling algorithm is sometimes called shortest remaining time first scheduling algorithm. Non-preemptive SJF Priority Scheduling Preemptive Shortest Job First (Page 85) FCFS A semaphore that cause Busy-Waiting is termed as. Spinlock (Page 113) Monitor Critical region Critical section Progress and Bounded Waiting are some of the characteristics to solve the critical section problems. True (Page 101) False In ---------addressing; the recipient is not required to name the sender. Symmetric Asymmetric (Page 47) rep Both symmetric and asymmetric None of the given options The execution of critical sections must NOT be mutually exclusive True False (Page 100) A program in execution is called a. Command

Process (Page 31) Software Compiler The critical section problem can be solved by the following except Software based solution Firmware based solution (Page 101) Operating system based solution Hardware based solution The bottom layer in the layered approach of Operating System is----------- User interface Hardware (Page 21) Kernel None of the given options The manual pages can be read in Linux using command. man (Page 27) wan desc help The hardware mechanism that enables a device to notify CPU is called an ------------- Interrupt Signal Trap Process click here for detail You can display the contents (names of files and directories) of a directory in UNIX/Linux directory structure with the --------------- command. ll s ls (Page 28) none of the given options The -------------- system call suspends the calling process. fork wait (Page 42) exec exit You can use the ------------- command to display the status of suspended and background processes fg

bg jobs (Page 68) kill You can terminate a foreground process by pressing -------------- <Ctrl-A> <Ctrl-C> (Page 69) <Ctrl-Z> None of the given options A time sharing system is Multi tasking Interactive Multi user All of these (Page 9) The main characteristic of a Real time system is Select correct option: Efficiency Large Virtual Memory Large secondary storage device Usability click here for detail Shared libraries and kernel modules are stored in directory /bin /dev /boot /lib (Page 26) scheduler selects the process from the job pool and put them in main memory. Long term (Page 36) Short term Medium term Swapper In indirect inter process communication, a sender mention the name of the recipient. do do not (Page 47) A is an integer variable that, apart from initialization is accessible only through two standard atomic operations: wait and signal. Semaphore (Page 111) Monitor

Critical region Critical section The performance of Round Robin algorithm does NOT depends heavily on the size of the time quantum. True (Page 89) False The following requirement for solving critical section problem is known as. There exists a bound on the number of times that other processes are allowed to enter their critical sections after a process has made a request to enter its critical section and before that request is granted. Progress Bounded Waiting (Page 101) Mutual Exclusion Critical Region The critical section problem can be solved by the following except Software based solution Firmware based solution (Page 101) rep Operating system based solution Hardware based solution is also called Swapper. Swap space Medium term scheduler Short term scheduler Long term scheduler Linux OS can support multiple users at a time True (Page 9) The Operating system is a layer of software between and. hardware, software application (Page 21) Kernel, hardware Dos, Windows Windows, Kernel The major advantage of multi-programming system is More than one jobs can be processed at a given time CPU utilization can be increased (Page 8) Jobs can be completed quickly All of the options are correct

Command-line interpreter is also called in some operating systems. Kernel Shell (Page 16) Signal API I/O instructions are Privileged Instructions. True (Page 12) In Linux directory structure, there is root directory. 1 (Page 26) 2 3 4 Utilities used for system administration (halt, ifconfig, fdisk, etc.) are stored in directory. /dev /boot /lib /sbin (Page 27) rm and [r]mkdir commands are used to directory. Create Move Remove (Page 30) Modify You can use the mv file1 file2 command to move file1 to file2. (Page 30) file 2 to file 1 this command will not work for moving files None of the option is correct. Both option a and b are correct Taking the CPU from one process and giving the CPU to another process is termed as Context Switching Dispatching Swapping Tracking click here for detail A Process that has finished working, as well as its parent process has also finished its execution. In this state the process A will be called as process. Child

Thread Zombie Fork Bounded Buffer is a buffer of size variable fixed (Page 44) In communication the process which wants to communicate with the other process must explicitly name the recipient and the sender. Direct (Page 46) Indirect Automatic Self The returned code to the child process after successful fork system call execution is 1 2 3 0 (Page 40) rep If the fork system call fails, it returns 1-1 (Page 40) 2 0 When a process opens its first file explicitly it will get descriptor number 1 2 3 4 click here for detail I MB or 1 megabyte is equivalent to---- 1024 bytes 1024 2 bytes click here for detail 1024 3 bytes 1000000 bytes ------------has a hierarchical file system structure. DOS Windows UNIX (Page 25) None of the given options

You can use the ---------command in UNIX to create a directory. rmdir mkdir (Page 29) cp gcc Files that start with a -------- in UNIX/Linux directory structure are known as hidden files.. (dot) (Page 28) # ( hash ) / (slash) ~ (tilt) The creating process is called a--------------- process while the new processes are called the -------------- of that process None of the given options Children, parent Parent, children (Page 38) Zombie, single buffer places no practical limit on the size of the buffer Bounded Unbounded (Page 44) Both Unbounded & bounded None of the given options The are used for communication between related or unrelated processes on the same system or unrelated processes on different systems. Pipes BSD Sockets (Page 53) Named pipe (FIFO) None of the given options A is an abstract key for accessing a file. File descriptor click here for detail Input Redirection Output Redirection FIFO You can display all of the signals supported by your system, along with their numbers, by using the ----------- command <Ctrl-A> fg jobs kill -l (Page 69)

The time it takes for the dispatcher to stop one process and start another running is known as the-----------. Dispatch latency (Page 82) Scheduling Context switching None of the given options First-Come, First-Served (FCFS) is a --------------scheduling algorithm. preemptive non-preemptive (Page 83) both preemptive and non- preemptive none of the given options The Shortest-Job-First Scheduling algorithm can be Preemptive only non-preemptive only preemptive or non-preemptive. (Page 85) None of the given options Preemptive ----------------scheduling is sometimes called shortest remaining-time-first scheduling. First-Come-First-Served (FCFS) Round-Robin Sorted Job First (SJF) (Page 85) Priority The basic purpose of is to help the users to utilize the hardware resources for completing different tasks in a simplified manner Operating system (Page 6) Application software All Software All of the given OS helps manages the following except Application software Bus speed of the system Click here for detail Memory Virtual memory A parent process calling system call will be suspended until children process terminates. wait fork exit exec click here for detail

n-process critical section problem can be solved by using The bakery algorithm (Page 105) Deterministing modeling Analytic evaluation None of above is a piece of code in a cooperating process in which the process may updates shared data (variable, file, database, etc.). Critical analysis Critical section (Page 100) Critical path Critical code Round Robin algorithm is similar to scheduling but preemption is added to switch between processes. Shortest job first Shortest Remaining Time First First Come First Server (Page 88) None of these DOS is single user operating system. True (Page 7) A process is said to be in critical section if it executes code that manipulates shared data True (Page 100) When process opens its first file explicitly it will get descriptor number 1 2 3 4 Click here for detail A major problem with priority scheduling algorithms is. Deadlock Aging Starvation (Page 86) None of these All threads within a process share the address space. Same Different (Page 71)

displays information about the top processes. Is Cs Top (Page 67) Cd The scheduling of are done by the operating system. Kernel threads (Page 73) User level threads Both kernel and user level thread None of the give option In Unix/ Linux, by default the standard output file is attached to the File Screen (Page 59) Printer Scanner POSIX is a standard developed by ANSI IEEE (click here for details ) ISO ACM is the basis of queuing theory which is branch of mathematics used to analyze systems involving queues and servers. Little s Formula (Page 96) Deterministic modeling Queuing Theory Queuing Analysis is a solution to the problem of indefinite blockage of low-priority processes. Starvation Deadlock Aging (Page 87) None of the these The priority of a process can be changed using command. nice (Page 94) cmd Cat grep

Batch programs are usually programs. Interactive Non-interactive Foreground Preemptive click here for detail A process consists of One or more threads Code Data All of the given click here for detail /usr/x11r6 is used by the X Window System. True (Page 27) command displays the contents of current working directory. Is (Page 28) Cs Mv Linux uses directory to store system configuration files. /bin /dev /boot /etc (Page 26) User mode can run the Privileged instructions. 1 (Page 11) 0 If your processor does not have two slots empty in Per Process File Descriptor Table, then your system call will fail. Pipe (Page 55) read write open First entries in Per Process File Descriptor Table are used as soon as the process is created. 1 2 3 4 (Page 54)

The number of processes completed per unit time is called. Turn around time Throughput (Page 83) Response time Dispatch latency The procedure The time at which the process finished working MINUS the arrival time of the process MINUS CPU burst for that process will help calculate the. on-preemptive Shortest Job First scheduling. Preemptive Shortest Job First scheduling (Page 85) FCFS RR Scheduling /opt is used for storage of large applications. True (Page 27) is a virtual directory in Linux and Unix. /proc (Page 27) /temp /ver /boot The Home Directory for superuser in Linux and Unix is /home /root (Page 27) None of the given Linux Treats Devices as Files. True (Page 26) An absolute pathname starts with the root directory (/) and a relative pathname starts with your home directory. True (Page 25) A pathname is the list of directories separated by. # $ & / (Page 25)

determines How to do something. Mechanism (Page 24) Policy Mechanism and Policy: None of the given User Goal of OS is that It easy to use, reliable, safe and fast. True (Page 24) We can install and run multiple OS by using VMWare. True click here for detail Mach, MacOS X Server, QNX, OS/2 and Windows NT are examples of OS Based on. Layered Micro Kernal (Page 22) Virtual Machine None of The Given In Layered Approach of OS, the Layer highest Layer is User Interface layer. True (Page 21) In Layered approach of OS, Lowest Layer is known as. Software Layer Hardware Layer (Page 21) Lower Level Layer None of The Given Operating System is the Manager of Hardware Resources. True (Page 6) An operating system is a control program that manages the execution of user programs to prevent errors and improper use of a computer. True (Page 6) The bottom-up view is that operating system is a resource manager who manages the hardware and software resources in the computer system. True (Page 6)

determines What will be done. Mechanism Policy (Page 24) Mechanism and Policy None of the given Copy file1 file2 is an example of OS view. Top down (Page 6) Bottum Up The Top-down view is that it is a program that acts as an intermediary between a user of a computer and the computer hardware, and makes the computer system convenient to use. True (Page 6) Managing Secondary Storage Involves all of the Following except Allocating storage space Deallocating Storage Prevent Overwriting (Page 5) Insure integrity of shared data The Purpose of Operating System is to generate Executable Programs and to them. Regenetrate Execute (Page 5) Store Remove Users are the People, machines or computers that uses the Hardware resources. True (Page 4) Database, Complier, Video games are examples of. Hardware Application (Page 4) Operating System Users Which of the Following is not an Operating System. Linux Unix Windows Xp Datebase (Page 7)

Operating system enables the user to use the Hardware Resources. True (Page 4) Which of the following is NOT a Hardware Resource CPU OS (Page 4) I/O Devices Memory Hardware provide basic computing resource. True (Page 4) is a preemptive scheduling algorithm. First Come First Serve Shortest Job First Round Robin (Page 89) None of these The priorities of processes in the group remain fixed. Kernel (Page 93) User The process of switching from one process to another is called latency. True (Page 34) In Unix/ Linux, by default the standard input file is attached to the Mouse Keyboard (Page 55) Light pen Joystick The nice value helps in assigning to a process. Priority (Page 94) Weight Time Scheduling integer shows the highest priority of a process in CPU scheduling Small (Page 86) Large