nguyên-lí
nguyên-lí
Memory hierarchy comprises of Disk, RAM memory, Cache. Select the increasing order of
their access time by CPU for an instruction or date.
Given a two-level page table for 32-bit virtual address with each 10 bits for Page table 1 and
2 and the rest for the offset. Suppose that process A need 12 Mb for running, its virtual
address 0x00403004 refers to address range from:
A. 0 to 4 Mb-1
B. 4 to 8 Mb-1
C. 8 to 12 Mb-1
D. 12 to 16 Mb-1
Process B has a virtual address space with 4 KB for each page. Given its page 2, 3, 5 is
mapped to page frame 1, 4, 6 respectively. The physical addresses of the virtual addresses
20530, 8239, 12387 are:
OS spends much of its time paging also instead of executing applications software, it is
called_________?
A. spooling
B. formatting
C. thrashing
D. booting
How much time will spend when LRU replaces the page?
An address space of 8 pages, each page is 1K in size and mapped into 32 page frames in
memory. How many bits must be used to represent the logical address of this address space?
A. 32 bit
B. 8 bit
C. 24 bit
D. 13 bit
The address loaded into the memory address register of the memory is referred to as
____________
A. Physical address
B. Logical address
The run time mapping from virtual to physical addresses is done by a hardware device called
the ____________
B. external storage
C. secondary storage
A. motherboard
B. keyboard
C. monitor
D. backing store
A. fast disk
B. disk large enough to accommodate copies of all memory images for all users
C. disk to provide direct access to the memory images
A. waiting
B. transfer
C. execution
Đây là thời gian hệ thống đợi để truy cập vào backing store (ổ đĩa lưu trữ) hoặc chờ
thiết bị hoàn thành các yêu cầu khác.
Đây là thời gian thực tế cần để di chuyển dữ liệu từ bộ nhớ chính (RAM) sang
backing store (hoặc ngược lại).
1, 2, 3, 4, 3, 5, 1, 6, 2, 1, 2, 3, 7, 5, 3, 2, 1, 2, 3, 6.
Có bao nhiêu lỗi trang xảy ra khi sử dụng các thuật toán thay thế sau đây, biết có 4 khung
trang.
a. LRU.
b. FIFO.
a) NTFS
b) FAT32
c) EXT4
d) DNS
3. What is the main advantage of the NTFS file system compared to FAT32?
5. In which directory structure does each file have only one parent directory?
a) Tree-structured directory
c) Single-level directory
a) Creating a file
b) Deleting a file
d) Renaming a file
10. In a UNIX-based operating system, which file system structure allows files to have
multiple parents?
a) Single-level directory
b) Tree-structured directory
d) Two-level directory
Tự luận
1. What is the difference between a file and a directory in an operating
system?
5. How does an operating system handle file metadata, and why is this
information important?
6. What are the key components of a typical file control block (FCB)?
Quản lý vào ra
Phần trắc nghiệm
a) CPU
b) RAM
d) Cache memory
a) Block devices
b) Character devices
c) Sequential devices
d) Network devices
c) Block devices are used for networking, while character devices are for
storage
7. Which layer of the I/O software system is responsible for buffering data
and managing device queues?
a) Device drivers
b) Interrupt handlers
d) Device-independent software
b) The I/O device sends data to memory without waiting for the
CPU
c) Data is transferred one block at a time with the CPU's full attention
. Using FCFS (First Come First Served) algorithm, find the average
waiting time for the following processes with the given data in the order
Process : Arrival Time : Burst Time respectively A : 2 : 2; B : 0 : 6; C : 7 : 1;
D : 4 : 3.
A. 2,1
B. 3
C. 5
D. 4,5
. Using FCFS (First Come First Served) algorithm, find the order of
execution for the following processes with the given data in the order
Process : Arrival Time : Burst Time respectively A : 2 : 2; B : 0 : 6; C : 7 : 1;
D : 4 : 3.
A. B, D, A, C
B. B, A, C, D
C. B, C, A, D
D. B, A, D, C
A. 3,5
B. 2,5
C. 2
D. 4
A. B, A, C, D
B. B, D, A, C
C. B, A, D, C
D. B, C, A, D
. Using SRTF algorithm, find the average waiting time for the following
processes with the given data in the order Process : Arrival Time : Burst
Time respectively A : 2 : 2; B : 0 : 6; C : 7 : 1; D : 4 : 3.
A. 1
B. 1,5
C. 2,5
D. 2
. Using SRTF algorithm, find the order of execution for the following
processes with the given data in the order Process : Arrival Time : Burst
Time respectively A : 2 : 2; B : 0 : 6; C : 7 : 1; D : 4 : 3.
A. B, D, A, C, D
B. B, A, B, C, A
C. B, C, A, D, B
D. B, A, D, C, B
A. 2,333
B. 1,333
C. 5,333
D. 4,333
A. B, A, D, C
B. B, C, A, D
C. B, A, B, C
D. B, C, D, A
A. 7,25
B. 8,25
C. 9
D. 8
A. C, D, B, C
B. C, B, A, D
C. C, B, D, A
D. C, A, D, B
A. 222
B. 127
C. 214
D. 337
A. 127
B. 214
C. 337
D. 119
A. 119
B. 214
C. 127
D. 337
. A memory has partitions with sizes (in KB): 15, 52, 22, 37, 62, 44. If
a process of size 31 KB requests memory, which partition size (in KB) will
be chosen if using the First Fit method?
A. 52
B. 44
C. 62
D. 15
. A memory has partitions with sizes (in KB): 15, 52, 22, 37, 62, 45. If
a process of size 26 KB requests memory, which partition size (in KB) will
be chosen if using the Best Fit method?
A. 62
B. 22
C. 37
D. 45
. A memory has partitions with sizes (in KB): 15, 52, 22, 37, 62, 46. If
a process of size 41 KB requests memory, which partition size (in KB) will
be chosen if using the Worst Fit method?
A. 22
B. 62
C. 37
D. 52
A. banker’s algorithm
B. round-robin algorithm
C. elevator algorithm
D. karn’s algorithm
A. in advance processes rarely know how much resource they will need
A. deadlock
B. starvation
C. inversion
D. aging
C. inversion graph
B. using thread
C. using pipes
A. Mutual exclusion
B. No preemption
C. A process must hold at least one resource and not be waiting to acquire
additional resources
To ensure that the hold and wait condition never occurs in the system, it
must be ensured that ____________
B. each process must request and be allocated all its resources before it
begins its execution
C. operating system
D. resources
A. deadlocks
B. not deadlocks
C. fatal
A. less efficient
B. more efficient
C. equal
D. none of the mentioned
A. Available
B. Need
C. Allocation
A. rarely
B. frequently
A. 11
B. 12
C. 13
D. 14
A. Resources
B. Processes
C. Programs
D. Data
D. Cannot determined
A.3
B.5
C.6
D.7
Yêu cầu:
Yêu cầu:
Vẽ biểu đồ Gantt cho tiến trình này theo giải thuật SJF_ non Preemptive
Tính thời gian chờ trung bình và thời gian hoàn thành trung bình cho các
tiến trình.
Bài 3:
Giả sử có 4 tiến trình với thời gian thực hiện như sau:
Vẽ biểu đồ Gantt cho tiến trình này theo giải thuật SJF_ Preemptive
Tính thời gian chờ trung bình và thời gian hoàn thành trung bình cho các
tiến trình.
B. 2-level directory
C. Multi-level directory
In the file system of the first MS-DOS sector, track 0, side 0 for the hard
disk, information about_________
A. Boot sector
B. Partition table
C. FAT table
D. Common data
For a 20M disk with the size of 1K, if managing free volumes using DSLK
how many blocks will it take to manage this disk:
A. 20 blocks
B. 40 blocks
C. 80 blocks
D. 16 blocks
___________ begins at the root and follows a path down to the specified file.
A. Standalone name
A. deletes
B. affects
B. 110000110000001110011111100011111…
C. 01111001111110001100000011100000…
D. 001111001111110001100000011100000…
As disks have relatively low transfer rates and relatively high latency
rates, disk schedulers must reduce latency times to :
______ is a unique tag, usually a number identifies the file within the file
system.
A. File identifier
B. File name
C. File type
C. allocate the space in file system & make an entry for new file in
directory
A. file name
B. file extension
C. file identifier
A. crating of a filesystem
B. deleting a filesystem
A. file ownership
B. file permissions
C. location of file contents
C. file-organisation module
A. mount table
B. hash table
C. file table
D. process table
If the block of free-space list is free then bit will ____________
A. 1
B. 0
C. any of 0 or 1
A. name
B. type
C. identifier
A. Shortened
B. Unchanged
C. Lengthened
D. Unshortened
A. Fork
B. Create
C. New
A. Address space
B. Process state
C. Process number
D. Process identifiers
D.Start seaching the list from the place where it left off last time.
A. Job Queue
B. PCB queue
C. Device Queue
D. Ready Queue
A parent process calling _____ system call will be suspended until children
processes terminate.
A. wait
B. fork
C. exit
D. exec
A. Process Register
B. Program Counter
C. Process Table
D. Process Unit
A. mutual exclusion
B. critical exclusion
C. synchronous exclusion
D. asynchronous exclusion
A. thread
B. pipe
C. semaphore
D. socket
A. priority inversion
B. priority removal
C. priority exchange
D. priority modification
To enable a process to wait within the monitor __________
Ôn tập
Câu 1.
A. A computer hardware.
B. Intermediary program between the computer's hardware and the user
program
D. An application software.
Câu 2.
Câu 3.
Câu 4.
A. Two processes
C. One process
Câu 5.
Câu 6.
Câu 7.
Câu 8.
If the specified block size is too small, what is the result to the operating
system?
A. Waste disk
D. Disk fragmentation
Câu 9.
B. Round-robin
Câu 10.
Câu 11.
A. Kali-linux
B. Ubuntu
C. Redhat
D. Linux
Câu 12.
A. User program
B. File
C. Database
D. Directory
Câu 13.
A. Dynamic path
C. Relative path
D. Absolute path
Câu 14.
Câu 15.
B. Worst-fit
C. Best-fit
D. Test-fit
Câu 16.
A. Next-fit
B. Worst-fit
C. Nest-fit
D. Best-fit
Câu 17.
Câu 18.
Câu 19.
Câu 20.
Câu 21.
Câu 22.
Câu 23.
A. Spool everything
Câu 24.
A. Spool everything
B. Request all resources initially
Câu 25.
A. Spool everything
PHẦN 2:
Câu 1.
A. 360 KB
B. 80 KB
C. 18 KB
D. 512 KB
Câu 2.
A. RAID 0
B. RAID 1
C. RAID 2
D. RAID 5
Câu 3.
C. Randomly scheduled
A. 89
B. 34
C. 50
D. 80
Câu 5.
C. High-performance servers
Câu 6.
Câu 7.
Câu 8.
A. I/O management
B. Process scheduling
C. Memory management
D. Network communication
Câu 9.
Câu 10.
B. Software updates
C. CPU processes
D. Network packets
Câu 11.
Câu 12.
D. It eliminates fragmentation
Câu 13.
A. Single-level
B. Hierarchical
C. Networked
D. None of the above
Câu 14.
A. 50
B. 34
C. 48
D. 32
Câu 15.
A. Memory swapping
B. Interrupt handling
C. Process threading
D. Deadlock prevention
Câu 16.
Memory-mapped I/O connects devices directly to:
A. Main memory
B. Disk storage
C. CPU registers
Câu 17.
Câu 18.
C. File security
Câu 19.
Câu 20.
Câu 21.
A. Resource sharing
C. Preempting resources
Câu 22.
A. Deadlock detection
B. Deadlock prevention
C. Deadlock avoidance
D. Process synchronization
Câu 23.
A file has a size of 2200 bytes. The size of each block is 512 bytes. How
many blocks does this file occupy?
A. 4
B. 5
C. 6
D. 7
Câu 24.
Which of the following is not correct about the main classes of I/O
devices?
A. Character devices
C. Stream devices
D. Block devices
Câu 25.
Which scheduling algorithm allocates the CPU first to the process that
requests the CPU first?
C. Priority scheduling