FINALTERM EXAMINATION
Spring 2010
CS604 Operating Systems
You can display the contents (names of files and directories) of a directory in UNIX/Linux directory structure with the --------------- command.
------------- spend more time doing IO than computations
------------buffer places no practical limit on the size of the buffer
With ----------you use condition variables.
Deadlocks can be described more precisely in terms of a directed graph called a system ----------
Addresses generated relative to part of program, not to start of physical memory are
Object files and libraries are combined by a ------------- program to produce the executable binary
The set of all physical addresses corresponding to the logical addresses is a ----------------- of the process
---------------- indicates size of the page table
If validation bit is 0, it indicates a/an --------- state of segment.
In ______ allocation scheme free frames are equally divided among processes
________ is used to store data on secondary storage device, e.g., a source program(in C), an executable program.
The ___________ method requires each file to occupy a set of contiguous blocks on the disk.
The basic purpose of ________________is to help the users to utilize the hardware resources for completing different tasks in a simplified manner
User mode can run the Privileged instructions
_______________ wastes CPU cycles and hence is a problem in real multiprogramming system.
The __________________ requires that no reader will be kept waiting unless a writer has already obtained permission to use the shared object.
The process of holding at least one resource and waiting to acquire additional resources that are currently being held by other processes is known as _________________.
If a process continues to fault, replacing pages, for which it then faults and brings back in right away. This high paging activity is called ___________. Banker’s algorithm is used for ________________
A program can not execute unless whole or necessary part of it resides in the main memory.
The size of pages and frames are same in logical memory and physical memory respectively.
Which command, Display permissions and some other attributes for prog1.c in your current directory? In the C-Scan and C-Look algorithms, when the disk head reverses its direction, it moves all the way to the other end, without serving any requests, and then reverses again and starts serving requests. In paged segmentation, we divide every segment in a process into __________ pages.
Intel 80386 used paged segmentation with _________ level paging.
The logical address of Intel 80386 is _________
Following is NOT true about Virtual memory.
The Swap instruction which is the hardware solution to synchronization problem does not satisfy the ________ condition, hence not considered to be a good solution.
The following requirement for solving critical section problem is known as ______________.
When a process is rolled out of memory, it loses its ability to use the CPU (at least for a while). Describe another situation where a process loses its ability to use the CPU, but where the process does not get rolled out.
How can you achieve memory protection in paging?
What is the basic function of pipe system call?
Provide names of common file structures. What is the structure of Two-Level Page Table?
Ignoring CPU overhead, what are the three primary components of disk access time (the time from the request of a sector to the time that it is available to the CPU). Given a transfer of a single sector, rank them according to their relative average cost.
Calculate the Average Waiting Time for four processes. Assume that Processes come in the sequence of P1,P2,P4, P3 at time=0 and scheduling algorithm applied is FCFS.
What do you think that why Main Memory is kept as a volatile memory and why not a permanent storage device? Briefly explain Thrashing as it pertains to main memory management.
Summarize the tradeoffs among simple arrays, trees, and hash tables as implementations of a page table.
Question No: 1 ( Marks: 1 ) - Please choose one
► l
► s
► ls
► none of the given options
Question No: 2 ( Marks: 1 ) - Please choose one
► short CPU bursts
► CPU bound processes
► IO bound processes
► None of the given options
Question No: 3 ( Marks: 1 ) - Please choose one
► Bounded
► Unbounded
► Both Unbounded & bounded ► Bounded
Unbounded
None of the given options
Question No: 4 ( Marks: 1 ) - Please choose one
► Semaphores
► Read/Write Locks
► Swaps
► Monitor
Question No: 5 ( Marks: 1 ) - Please choose one
► Directed graph
► Critical path
► Resource allocation graph
► Mixed graph
Question No: 6 ( Marks: 1 ) - Please choose one
► Virtual
► Physical
► Relocatable
► Symbolic
Question No: 7 ( Marks: 1 ) - Please choose one
► Compiler
► Linker
► Text editor
► Loader
Question No: 8 ( Marks: 1 ) - Please choose one
► Physical address space
► Process address space
► None of the given options
► Logical address space
Question No: 9 ( Marks: 1 ) - Please choose one
► translation look-aside buffers
► Page-table length register (PTLR)
► Page-table base register (PTBR)
► Page offset
Question No: 10 ( Marks: 1 ) - Please choose one
► protected
► shared
► legal
► illegal
► shared
► legal
► illegal
Question No: 11 ( Marks: 1 ) - Please choose one
► Fixed Allocation
► Propotional Allocation
► Priority Allocation
► None of the given options
Question No: 12 ( Marks: 1 ) - Please choose one
► Block Special File
► Link File
► Ordinary File
► Directory
Question No: 13 ( Marks: 1 ) - Please choose one
► Contiguous Allocation
► Linked Allocation
► Indexed Allocation
► None of the given options
Question No: 14 ( Marks: 1 ) - Please choose one
► Operating system
► Application software
► All Software
► All of the given
Question No: 15 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 16 ( Marks: 1 ) - Please choose one
► Busy waiting
► Spinlock
► Critical section
► Mutex
Question No: 17 ( Marks: 1 ) - Please choose one
► first readers-writers problem
► second readers-writers problem
► third readers-writers problem
► fourth readers-writers problem
Question No: 18 ( Marks: 1 ) - Please choose one
► Mutual exclusion
► Hold and wait
► No preemption
► Circular wait
Question No: 19 ( Marks: 1 ) - Please choose one
► paging
► thrashing
► page fault
► CPU utilization
Question No: 20 ( Marks: 1 ) - Please choose one
► Deadlock avoidance
► Deadlock detection
► Deadlock prevention
► Deadlock removal
Question No: 21 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 22 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 23 ( Marks: 1 ) - Please choose one
► ls –l prog1.c
► ls –d prog1.c
► ls file prog1.c
► ls –l prog1.c /Directory
Question No: 24 ( Marks: 1 ) - Please choose one
► True
► False
Question No: 25 ( Marks: 1 ) - Please choose one
► Fixed size
► Variable size
Question No: 26 ( Marks: 1 ) - Please choose one
► One
► Two
► Three
► Four
Question No: 27 ( Marks: 1 ) - Please choose one
► 36 bits
► 48 bits
► 64 bits
► 128 bits
Question No: 28 ( Marks: 1 ) - Please choose one
► Virtual memory help in executing bigger programs even greater in size that of main memory.
► Virtual memory makes the processes to stuck when the collective size of all the processes becomes greater than the size of main memory.
► Virtual memory also allows files and memory to be shared by several different processes through page sharing.
► Virtual memory makes the task of programming easier because the programmer need not worry about the amount of physical memory,
Question No: 29 ( Marks: 1 ) - Please choose one
► Progress
► Bounded waiting
► Mutual exclusion
► None of the given
Question No: 30 ( Marks: 1 ) - Please choose one
“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
► Mutual Exclusion
► Critical Region
Question No: 31 ( Marks: 2 )
Where the Infinite loop starts it also be the cause to suspend the CPU from working sitution to idle stat.
Question No: 32 ( Marks: 2 )
memory protection in paging is achieved by associating protection bits with each page. these bits are associated with each page table entry and specify protection on the corresponding page.
Question No: 33 ( Marks: 2 )
the pipe system call creates a pipe and returns two file descriptors, one for reading and second for writing.
Question No: 34 ( Marks: 2 )
FAT32
NTFS
Question No: 35 ( Marks: 3 )
Question No: 36 ( Marks: 3 )
Question No: 37 ( Marks: 3 )
Processes CPU Burst
P1 4
P2 1
P3 3
P4 2
Question No: 38 ( Marks: 3 )
In my view the Main memory is volatile because it has to maintain current and pending jobs to do till job done it kept data then transfers to the permanemt storage device but the permanent stroage has to only store the data so thats why data cant be on stack always all data cant be in working.
Question No: 39 ( Marks: 5 )
A process is thrashing if it is spending more time paging than executing. thrashing result in severe performance problems: low cpu utilization, high disk utilization, low utilization of other i/o devices.
Question No: 40 ( Marks: 5 )
No comments:
Post a Comment
PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE
Note: Only a member of this blog may post a comment.