OSG202 Source Github
OSG202 Source Github
qn=2 (6843) the four main structural elements of a computer system are: |
qn=3 (6849) which of the following instructions should be allowed in user mode? |
qn=4 (6858) as one proceeds down the memory hierarchy(phan cap bo nho) (from
qn=5 (6863) information that must be saved prior to the processor transferring
qn=6 (6871) what is not a main function of an operating system? | provide user
interfaces
qn=7 (6883) what is the main characteristic of real-time operating system? | time is
key parameter
qn=8 (6898) what is not correct about system calls? | in terms of performance,
qn=9 (6903) which of the following is a task of process management of os? | all of
qn=10 (6909) a simple structuring model for monolithic system includes: | all of the
other choices
qn=12 (6941) which of the following process state transitions is correct, when the
external event for which a process was waiting happens? | blocked (waiting) ->
ready
qn=13 (6948) how many percent of the cpu time is wasted, when a computer
system has enough room to hold two program and these programs are idle waiting
qn=17 (6978) which of the following is true about atomic action on semaphores? |
qn=18 (6987) which of the following statements is true about hardware solution to
qn=19 (6991) what is the purpose of cpu scheduling algorithms? | pick one of the
qn=20 (6999) the first-come, first-served (fcfs) algorithm is fine for most ____
systems | batch
qn=21 (7007) five batch jobs a through e, arrive at a computer center at almost the
same time. they have estimated running times of 8, 6, 2, 10, and 4 minutes.
determine the average waiting time for sjf (shortest job first) scheduling. ignore
qn=22 (7015) assume jobs a-d arrive in quick succession in the ready queue.
using round robin scheduling (quantum=4), the turnaround time for job d is ____. |
22
qn=23 (7021) which of following is true about cache in the memory hierarchy? |
| both memory management with bit maps and memory management with linked
lists
qn=26 (7042) one of the most important innovations of demand paging was that it
qn=27 (7048) which of these statements about the inverted page table are true? |
an entry contains the pair (process, virtual page) mapped into the corresponding
page frame
qn=28 (7057) if there are 64 pages and the page size is 2048 words, what is the
qn=29 (7065) a system with 32 bit virtual address. if the page size is 4 kb and each
table entry occupies 4 bytes, what is the size of the page table? | 4 mb
qn=30 (7072) which of the following statements is incorrect about translation look-
aside buffer (tlb)? | a tlb miss implies a disk operation will follow
qn=31 (7080) working set model is used for: | finding the minimum number of
frames necessary for a job so that jobs can be run without "thrashing"
qn=32 (7086) which is not true about the method of backing store: "paging to a
qn=35 (7413) file structure can be: | all of the other choices
qn=36 (7421) ____ is a specialized write command for existing data files that
qn=37 (7428) which are allocation methods of disk blocks for files? | all of the other
choices
qn=38 (7437) disk can be divided up into one or more partitions. the first block of
qn=39 (7442) the linking technique that allows the file to appear in more than one
qn=40 (7449) which mechanism is implemented by writing to the log file with the
qn=41 (7454) the file manager writes the volume name and other descriptive
innermost part
qn=42 (7464) which is the maximum partition size, if the fat type is fat-32 and the
qn=43 (7475) the main classes of i/o devices are: | block devices and character
devices
qn=44 (7485) which of the following statements about the task of device controller
qn=45 (7489) which approach is used in order to cpu communicate with the control
qn=46 (7495) which of the following statements is not correct about dma? | dma
qn=47 (7502) an interrupt that leaves the machine in well-defined state is called
qn=48 (7507) which of the following statements is not correct about "device
qn=49 (7514) which is the right order between the 4 i/o software layers? | user-
handlers
qn=50 (7523) each device attached to your computer comes with a special
qn=51 (7528) in a fixed magnetic disk, each circle is called a ____. | track
qn=52 (7541) what is a "stripping" in raid? | distributing data over multiple drives
qn=53 (7549) a operation concerning stable storage is: | all of the other choices
qn=54 (7576) if a system is deadlocked, no processes can | all of the other choices
qn=55 (7581) ____ is when each process involved in the impasse is waiting for
another to voluntarily release the resource so that at least one will be able to
qn=57 (7593) the permanent blocking of a set of processes that compete for
qn=59 (7619) which deadlock condition does "request all resources initially"
qn=60 (7624) what is the correct approach with the "no preemption condition" to
qn=1 (6840) which of special register contains the mode bit (user or kernel)? |
qn=2 (6847) which of main bus in the ibm pc computer, that can run at 66 mhz and
qn=3 (6855) booting a general purpose computer involves the following steps
qn=4 (6860) which of the following statements about random access memory
qn=5 (6867) which of the following statements is incorrect about the cmos? | to
contain bios
qn=6 (6873) which is not an example of a resource that is commonly time-
qn=7 (6888) a well-known embedded operating system is: | qnx and vxwork
qn=8 (6899) a(n) _________ is provided to make system calls from some
qn=9 (6908) the major operating system services provide mechanisms for secure
qn=10 (6912) which of the following is correct about the advantages of layered
system? | easier to extend and easier to debug from lower to upper layer
qn=11 (6931) os win32 use system call_____, while os unix use system
qn=12 (6944) which of the following process state transitions is illegal? | ready ->
blocked (waiting)
qn=13 (6951) how many percent is cpu utilization, when a computer system has
enough room to hold two program and these programs are idle waiting for i/o half
qn=14 (6959) an arrival message causes the system to create a new thread to
qn=15 (6966) which conditions of mutual exclusion does the lock variables
qn=17 (6984) semaphores that are initialized to 1 and used for two or more
processes to ensure only one can enter its critical section at the same time are
qn=18 (6988) which cannot be able to solve the race condition? | shared memory
qn=19 (6994) which is not a goal of a scheduling algorithm for batch systems? |
response time
qn=20 (7002) some systems increase the priority of jobs that have been in the
system for an unusually long time to expedite their exit, which is known as ____.? |
aging
qn=21 (7011) five batch jobs a through e, arrive at a computer center at almost the
same time. they have estimated running times of 8, 6, 2, 10, and 4 minutes. their
highest priority. determine the average turnaround time for priority scheduling.
qn=22 (7017) assume jobs a-d arrive at almost the same time in the ready queue.
determine the average turnaround time for sjf scheduling. ignore process switching
overhead | 9.0
qn=23 (7028) with paging, when is the internal fragmentation possible? | the last
qn=24 (7033) which of these statements about the algorithm "next fit" is true? |
memory manager starting searching the list of segments from the place where it
qn=25 (7041) assume the memory manager receives a request for a block of 200.
when the worst-fit algorithm is used, ____ is the beginning address of the block
qn=26 (7045) when a virtual memory system manages memory in fixed length
units, which of the following terms correctly represents its unit? | page
qn=28 (7061) suppose a virtual address space of 2^32 words and the page size is
2^12 words. if the virtual address is 12345678 in hexadecimal, what would be the
addresses are split into a 10-bit top-level page table field, an 12-bit second-level
page table field, and an offset. how large are the pages? | 1-kb page
qn=30 (7077) the ____ policy is based on the theory that the best page to remove
qn=31 (7081) when there is an excessive amount of page swapping between main
memory and secondary storage, the operation becomes inefficient, which is called
____. | thrashing
qn=32 (7089) in terms of main memory efficiency the method of "backing up pages
worse
qn=33 (7408) which of the following is specified to indicate the directory where the
qn=34 (7417) which of the following file structure is widely used on large
qn=36 (7430) which of the following allocation methods the i-nodes use? | indexed
allocation
qn=37 (7438) the disk block in a partition that includes a magic number, the
number of blocks in the file system and other key administrative information is
called: | superblock
qn=38 (7444) which of the following is correct about symbolic links? | symbolic
qn=40 (7456) which of the following is true about the block size in disk space
management | the larger the block size is the worse the disk space utilization is
qn=41 (7477) which class of i/o devices that disks and tapes belong to? | block
devices
qn=43 (7493) in general, which is the best technique for i/o data transfer? | direct
memory access
qn=44 (7498) dma operations require the following information from the processor
qn=45 (7504) what is the table where its entry contains the memory address of
qn=46 (7510) imagine that a certain printer can print 400 characters per second
and that the time to write a character to the printer's output register is so short it
can be ignored. if to run this printer using interrupt-driven i/o and each character
printed requires an interrupt that takes 50 �sec all-in to service. how many
percent of the cpu does the interrupt overhead cost? | 2% of the cpu
qn=47 (7518) which of the following i/o software do device drivers do? | writing
qn=49 (7531) of the three components of access time in a disk, ____ is the
qn=51 (7551) how much cylinder skew is needed for a 7200- rpm (rotate per
minute) disk with the track-to-track seek time of 1 msec? the disk has 200 sectors
mhz crystal is used, what should be the value of the holding register to achieve a
qn=55 (7590) assume the following events and actions take place. the following
qn=56 (7596) which of the following statements does not apply to manual deadlock
qn=59 (7626) the scheme of ____ removes the possibility of a circular wait and
movable-head magnetic disks, such as the computer hard drive, have ____
he data-transfer rate for an optical disc is measured in ____ per second and refers
if the transport speed for a magnetic tape is 200 inches per second and the density
____ is a way to optimize search times by ordering the requests once the
to put data on an optical disc requires a high -intensity laser beam, which burns
indentations, | lands
data recorded on fixed- head dasds may or may not be blocked at the discretion of
the need for algorithms to resolve conflicts between processors is called process
____. | synchronization
____ proposed a solution to the readers and writers problem that did not result in
starvation | hoare
each active thread in a process shares the ____ and the resources allocated to its
____ is when, in modern printing systems, a disk accepts output from several
____ occurs when two processes do not release control of resources they are
failure to lock database records before updating them may result in a ____
a network that's congested or has filled a large percentage of its i/o buffer space
interactive systems generally improve the use of resources through ____ resource
when using the clock page replacement policy, a page with a reference bit of ____
is replaced. | 0
____ gives users the appearance that their programs are being completely loaded
studies have shown that having any ____, even a small one, can substantially
requests, | 82%
the cache hit ratio is ____, if the total number of requests is 10 and 6 of those are
found in | 60%
assume that the page map table below is in effect. the number of lines per page is
consider the following four cases. the lru policy,____, will be least likely to swap. |
case 4
one of the most important innovations of demand paging was that it made ____
the operating system can tell the ____ of each group of digits by its location in the
defragmentation, is | compaction
by compacting and relocating, the memory manager optimizes the use of memory
the fixed partition scheme works well ____. | when jobs have the same size
trillion
capacity
a system with ____ divides programs into parts and keep them in secondary
government | workstations
vacuum tube computers were used during the period of ____. | 1940-1955
____ introduced the need for control cards, which defined the exact nature of each
a typical ____ computer houses devices to perform audio, video, and graphic
the name for the nucleus of an operating system is the ____. | kerneld
where is the position of the operating system in computer system: | above the
consider a computer system that has cache memory, main memory (ram) and
the basic idea behind the microkernel design is: | to archive high reliability by
which of the following conditions that causes the processes to be terminated, when
how many percent of the cpu time is wasted, when a computer system has enough
room to | 1 %
number, offset>
the page table for each process maintains: | the frame location for each page of
the process
the second-chance page -replacement algorithm | moves pages found at the head
of a fifo queue with the referenced bit turned on back to the tail of the queue to
in terms of speed the best method of dynamic storage -allocation is: | first fit
lru replaces the page that has spent the | longest time in memory without being
referenced
in a system employing a paging scheme for memory management, wasted space
which of the following is appropriate to determine program size and create page
which of the following is not a path name for the file /etc/passwd | none of the
above
what is incorrect about contiguous allocation of files ? | it does not cause disk
fragmentation
which of the following is not correct about hard links and symbolic links? | hard
which of the following i/o software device layers is done by user-level software? |
an example of the key differences that can exist across (and even in) classes of i/o
which of the following is not correct about the reliability of different raid levels? | all
directly
what kind of i/o devices that disks and tapes belong to? | block-oriented devices
if in a resource -allocation graph, each resource type has exactly one instance,
all deadlocks involve conflicting needs for resources by | two or more processes
what is the weakness of the banker's algorithm? | requiring that processes state
preemption condition
which of the following statements is incorrect about user mode and kernel mode? |
the job scheduler seeks to ____, when scheduling jobs. | balance cpu and i/o
intensive jobs
assume jobs a-d arrive in quick succession in the ready queue. using round robin
scheduling, | 24
the process scheduler assigns the cpu to execute the processes of those jobs
interrupt handlers
7/ which of the following is not a correct explanation of unix which is one of the os?
10/ what is the correct statement about the process of booting a computer? | bios
detects the boot device, the boot sector determines the active partition, then the
11/ what is the correct about trap instructions and interrupts ? | all of the above
contention
6/ which of the following state transitions are illegal? | waiting -> runing
stack
1/ the maximum segment for process pentium if the limit field of segment
descriptor | 1mb
4/ a page fault means that we referenced a page? | that was not in main memory
6/ what is not the technique of implemention for virtual memory? | demand partition
7/ which of the following information bits in the entry of page table is used to
the general role of an operating system is to: | provide a set of services to system
users
the two basic types of processor registers are: | general and special registers
which of the following statements is correct about shortest job first | minimize
which of the following process state transitions are legal? | running -> ready
which of the following is not correct about user-level threads ? | with user-level
what is software proposal in the solution of mutual exclusion with busy waiting | all
of the above
which is the correct description of transitions between process states below? (see
interrupts
which is a wrong statement about the quantum used in round robin algorithm ? |
waiting ? | semaphores
is a specialized write command for existing data files that allows for appending
many computer users and some operating systems call subdirectories | files
which method is used to implement files to keep each file as a linked list of disk
which of a system call is to allow the system announce that the file is coming and
which of a system call is to allow the file to appear in more than one directory? |
link
which of a system call is to allow the system free up internal table space? | close
how much cylinder skew is needed for a 5400- rpm (rotate per minute) disk with
the aspect of disk performance that represents the time it takes to position the
assuming that it takes 10 nsec to copy a byte, how much time does it take to
what is asynchronous transfer in principles of i/o software? | the cpu starts the
transfer and goes off to do something else until the interrupt arrives
assuming that it takes 10 nsec to copy a byte, how much time, does it take to
completely | 40 micro-sec
which of the following statements is incorrect about i/o using dma? | dma is
software solution to speed up data transfer between i/o device and memory
squares
wait condition
_________is the act of allowing only one process to have access to a dedicated
what is the correct approach of the driver of dedicated devices with requesting
device that is | the device driver decides blocking and returning an error code
what is true about non-preemptable resources? (non preemptable) | will cause the
which of the following is not a step in the boot process? | the antivirus program
which of a system call is to allow the system free up disk space? | delete
consider a swapping system in which the memory consists of the following hole
assume the memory manager receives a request for a block of 200. when the
sizes: 10 k, 4 k, | 10 k, 20 k, 15 k
which is the fastest bus in the ibm pc computer? | isa (industry standard
architecture)
assume the following events and actions take place. the following statement is
operating system abstraction supports the ability to have operation even when
the page size that is too small wil l generate | very long page tables
circular
a cpu may have separate fetch, decode and execute units, so that can carry out
which of a system call is to allow the system fetch the attributes and list of disk
which of the following statements is not correct about the device controller of i/o
qn=5 (6907) which of the following is not a task of i/o management of os? |
qn=7 (6916) ____ is the partitioning of a single server, each of which can support a
qn=1 (6837) a cpu may have two or more complete processors, so that can carry
programs is defined by the set of ________ that the operating system provides |
system calls
what happens when a thread calls down (s) when it wants to enter its critical
section, where s is a binary semaphore set to 1? | the thread is allowed to enter its
the file manager writes the volume name and other descriptive information on an
easy-to-access place on each unit: ____ of the magnetic disk | the innermost part
which of the following statement is not true about separating i/o and memory
each device attached to your computer comes with a specia l program called a |
device driver
memory
which of the following process state transitions is correct, when the scheduler
which of the following process state transitions is illegal? | ready -> blocked
(waiting)
shared memory
dos
all interrupts
the _________is the essential component ofthe operating system that remains in
one of the most important innovations of demand paging was that it made feasible
| virtual memory.
when a virtual memory system manages memory in fixed length units, which of the
which is the maximum number of partition that most disks can be divided up? | 4
imagine that a certain modem can read 7,000 characters per second and that the
which is not a function of device drivers? | to accept abstract read and write
request from device independent software above it and see that they are curried
out
what is the correct approach with the "mutual exclusion condition" to prevent
consider the case of a home construction company with two application programs,
purchasing (p1) and sales (p2), which are active at the same time. they each need
to access two files, inventory (f1) and suppliers (f2), to update daily transactions.
the following series of events will cause a deadlock. fill in the missing event in the
sequence. | sales (p2) doesn't release the inventory file (f1) but requests the
fill in the missing step in the following deadlock situation. two users from the local
board of education are each running a program (p1 and p2), and both programs
will eventually need two dvd drives to copy files from one disc to another. only two
dvd-r drives are available and they're allocated on an "as requested" basis. soon
with demand paging, jobs are divided into equally sized ____ that initially reside in
the cache hit ratio is ____, if the total number of requests is 10 and 6 of those are
the ____ policy is based on the theory that the best page to remove is the one that
within the memory manager the segment link table lists details about each
in general, when a job is allocated to the cpu its page map table is loaded into
main memory while the segment map tables are loaded only as needed. | False
the first-in first-out (fifo) page replacement policy will remove the pages that have
False
from hold, the job moves to waiting when it's ready to run but is waiting for the cpu.
| False
a job's working set is the set of pages residing in memory that can be accessed
indirectly | False
once starvation has been detected, an algorithm can be implemented in which the
system blocks new jobs until the starving jobs have been satisfied. | True
every time an instruction is executed, or a data value is used, the operating system
(or the hardware) must translate the job space address, which is relative, into its
one sector will hold one page of job instructions and fit into one page frame of
memory. | True
when modeling deadlock, if there's a cycle in the graph, then there is a deadlock
a variation of the lru page replacement algorithm is known as the clock page
pointer to step through the reference bits of the active pages, simulating a
each page of a job is actually stored in a page frame that can be located anywhere
when using a fifo scheme, more memory will always result in better performance. |
False
according to the banker's algorithm an unsafe state always leads to deadlock. |
False
if locks are not used to preserve data integrity, the updated records in a database
might include only some of the data�and their contents would depend on the
demand paging requires that the page map table for each job keep track of each
as a job moves through the system it is always in one of five states (or at least
three); these are called the job status or the process status. | True
the advantage of raid level 3 is that if any one drive fails, data can be restored
the job of the i/o control unit is to keep up with the i/o requests from the cpu and
pass them down the line to the appropriate control unit. | False
an optical disc drive adjusts the speed of the disc's spin to compensate for the
sector's location on the disc�this is called continuous linkage velocity (clv). | False
the scan algorithm moves the arm methodically from the inner to the outer track,
levels. | True
two of the most important measures of optical disc drive performance are
a dvd with a fast data transfer rate will drop fewer frames when playing back a
recorded video segment than will a unit with a slower transfer rate. | True
the traffic controller maintains a database containing the status and connections
for each unit in the i/o subsystem, grouped into channel control blocks, control unit
among the many differences between an optical disc and a magnetic disk is the
direct access storage devices (dasds) are devices that can directly read or write to
threads share the same resources as the process that created them. | True
the classic problem of producers and consumers is one in which one process
multiprocessing can refer to one job using several processors to execute sets of
each with its own memory, i/o devices, cpu, and operating system. | True
work on a critical region of the program before other processes have access to it. |
True
the symmetric configuration is best implemented if the processors are all of the
the best-fit free list scheme uses memory more efficiently than the first-fit free
programs to gather together all of the empty blocks and compact them to make
one block of memory large enough to accommodate some or all of the jobs waiting
storage for execution, so that two or more segments take turns occupying the
during compaction, the operating system must distinguish between addresses and
data values, and the distinctions are not obvious once the program has been
after relocation and compaction, both the free list and the busy list are updated. |
True
the first attempt to allow for multiprogramming used fixed partitions. | True
one of the problems with the best-fit algorithm is that the entire table must be
searched before the allocation can be made because the memory blocks are
onboard systems are computers placed inside other products to add features and
capabilities. | False
massive and fast number-crunching ability to carry out military operations and
in the 1950s, only one fortran program could run at a time, and then the fortran
the file manager is responsible for data files but not program files. | False
real-time systems are used in time-critical environments where reliability is key and
since the mid-1970s rapid advances in computer technology have blurred the
card systems date from the earliest computers, which relied on punched cards or
tape for input when a job was entered by assembling the cards into a deck and
running the entire deck of cards through a card reader as a group. | False
the minicomputer of the 1970s was smaller than the microcomputer. | False
many early programs used convoluted logic that only the original programmer
could understand, so it was nearly impossible for anyone else to debug or change
the high-level portion of the process manager is called the process scheduler. |
False
a process requires space in main memory where it resides during its execution
although, from time to time, it requires other resources such as data files or i/o
devices. | True
what are the allocation methods of disk blocks for files: | all of the above
the following requirement must be met by any facility or capability that is to provide
which of the following is appropriate to release page table and pages? | process
termination time
which of the following information bits used by the various page replacement
policies indicates if the page has been called lately? | referenced bit
qn=42 (7487) in the memory-mapped i/o system, in order that cpu communicates
with the control registers in the devices, the control register is assigned : | unique
memory address
qn=60 (7637) a system has four processes and five allocated resources. the
the operating system does each of the following except | ensures that programs
the process is the computational environment that includes each of the following
processes
files are distinguished from other resources except that | the interface is
the process manager deals with the following except | window management
the process manager commonly interacts with other components except | device
controller
a trap instruction doesn't cause this cpu hardware step to occur: | return control to
erasure time
which is the least common reason that a running thread might cease using the
multiplexed? | 4
handler code
in the synchronization context, process creation and destruction tend to be quite
the following statements about and synchronization are true except | simultaneous
which statement about monitors is incorrect? | monitors can solve just a proper
which statement about ipc is incorrect? | if the sender and receiver are on different
what is the main difference function between operating systems for mainframe
what is the correct approach with the mutual exclusion condition to prevent
: what is the correct approach with the hold and wait condition to prevent
operation is completed.
which command is used to display the absolute pathname for the directory that
directory? | ls -a
which command would you use to create a sub-directory in your home directory? |
mkdir
which command can be used to display the contents of a file on the screen? | cat
_____ is the command that writes the bottom 10 lines of a file to the screen. | tail
: _____ is the command that writes the first 10 lines of a file to the screen. | head
a system has four processes and five allocated resources. the current allocation
five batch jobs a through e, arrive at a computer center at almost the same time.
they have estimated running times of 8, 6, 2, 10, and 4 minutes. their (externally
first-come, first-server (run in order 8, 6, 2, 10, 4); s-shortest job first, determine
the mean process turnaround time. ignore process switching overhead. assume
that only one job at a time runs, until it finishes. all jobs are completely cpu bound.
____ uses the same underlying philosophy as shortest job next, where the
shortest jobs are processed first and longer jobs are made to wait. | sstf
the following,____, describes the first memory allocation scheme. | each program
to be processed was loaded in its entirety into memory and allocated as much
the ____ contains the value that must be added to each address referenced in the
program so it will be able to access the correct memory addresses after relocation.
| relocation register
second-generation computers were developed to meet the needs of ____. |
businesses
____ means that several logical records are grouped within one physical record. |
blocking
____ include(s) every peripheral unit in the system such as printers, disk drives,
the overwhelming demand for ____ capability in the mid-1990s sparked the
the ____ is used to indicate that a program is permanently held in rom (read only