Anda di halaman 1dari 13

1.

What is an Operating System


Sistem operasi adalah seperangkat program yang mengelola sumber daya perangkat keras
komputer atau hardware, dan menyediakan layanan umum untuk aplikasi perangkat lunak.
sistem operasi bertindak sebagai perantara antara program aplikasi dan perangkat keras
computer.

2. What are the goals of operating system


a. membuat komputer menjadi lebih mudah, menarik dan nyaman untuk digunakan.
b. memungkinkan sumber daya komputer digunakan secara efisien.
c. Sistem Operasi yang disusun sedemikian rupa memungkinkan menerima pengembangan
baru yang efektif dan efisien, dapat melakukan pengujian sistem tanpa mengganggu layanan
yang telah ada.

3. What are the component of a Computer


a. Hardware
b. Sortware
c. Brainware

4. What are the 2 definition of an operating system


Sebagai sumber daya dan control

5. What is a kernel
kernel adalah program komputer yang mengelola permintaan input / output dari perangkat
lunak, dan menerjemahkannya ke dalam instruksi pemrosesan data untuk CPU dan komponen
elektronik lainnya dari komputer. Kernel adalah bagian mendasar dari sistem operasi komputer
modern.

6. How does the computer boot up?


· Aktifkan tombol Power.
· CPU Pin direset dan register diatur ke nilai tertentu.
· CPU melompat ke alamat BIOS (0xFFFF0).
· BIOS menjalankan POST (Power-On Self Test) dan pemeriksaan lain yang diperlukan.
· BIOS melompat ke MBR (Master Boot Record).
· Primer Bootloader berlangsung dari MBR dan melompat ke Bootloader sekunder.
· Bootloader memuat Sekunder Sistem Operasi.
Ini adalah tugas-tugas yang dilakukan selama proses booting.

7. Why are interrupts disable when another interrupt is running


Karena perintah yang baru masuk harus menunggu perintah yang sebelumnya selesai di jalankan
,karena resource(sumber daya) nya di gunakan untuk menjalankan perintah sebelumnya,sehingga
perintah yang baru masuk harus menunggu sampai resource nya selesai digunakan,dan begitu
seterusnya
8. What does it volatile mean in storage and give an example
Sebuah memory yang bila tidak di aliri tenaga listrik, maka data yang telah ditulis akan hilang.
Misalnya RAM.

9. What is caching
Tempat penyimpanan sementara

10. What are the importance/ advantages of multiprocessors


a. Peningkatan throughput, karena bayak proses yg berjalan dalam satu waktu sekaligus
b. Ekonomis
c. Reliability, jika satu proses mengalami suatu gangguan, maka proses yg terjadi msh dapat
berjalan dengan baik.

11. What are the two modes in-dual mode

12. What does a software error creates Commented [D1]: Ch 1

13. What is a process


a program in execution; process execution must progress in sequential fashion

14. What are parts of process


a. program counter
b. stack
c. data section

15. What is the difference between process and program


Program is passive entity, process is active, Program becomes process when executable file
loaded into memory

16. What are the process state


As a process executes, it changes state

17. What are included in process control block


Information associated with each process
• Process state
• Program counter
• CPU registers
• CPU scheduling information
• Memory-management information
• Accounting information
• I/O status information

18. What are the services that an os provides


a. User interface
b. Program execution
c. I/O Operation
d. File system manipulation
e. Communications
f. Error detection

19. What are the function of OS


a. Resource Allocation
b. Accounting
c. Protection and Security

20. What are the benefits of of virtual system


a. Pada dasarnya, beberapa lingkungan eksekusi (sistem operasi yang berbeda) dapat berbagi
perangkat keras yang sama
b. Melindungi satu sama lain
c. Beberapa berbagi file dapat diizinkan, dikendalikan
d. Commutate dengan masing-masing, sistem fisik lainnya lain melalui jaringan
e. Berguna untuk pengembangan, pengujian
f. Konsolidasi banyak sistem penggunaan sumber daya rendah ke sistem sibuk sedikit
g. "Open Virtual Machine Format", format standar mesin virtual, memungkinkan VM untuk
menjalankan dalam banyak mesin virtual (host) platform yang berbeda

21. What is debugging


Menemukan dan memperbaiki error

22. What is a core dump


Core dump adalah catatan isi memori sebuah program komputer pada suatu waktu tertentu,
terutama ketika program tersebut telah berhenti secara tidak normal.

23. What is a crash dump


Crash dump adalah sekumpulan data hasil analisa komputer dalam waktu singkat yang isinya
berupa kumpulan informasi yang berhasil terkumpul saat suatu event error (lag/crash/freeze)
terjadi.

24. What is a sysgen and how does it work in booting


Sistem Generation (Sysgen) adalah proses dua tahap untuk menginstal atau memperbarui OS /
360, OS / VS1, OS / VS2 (SVS), OS / VS2 (MVS) dan sistem dikenakan biaya berasal dari mereka.
Meload dan memeriksa semua hardware

Booting mulai komputer dengan memuat kernel

Bootstrap Program - kode yang disimpan di ROM yang dapat menemukan kernel, load ke
memori, dan mulai pelaksanaannya
25. What is CLI and what is GUI give an example

26. What is System Calls


Programming interface to the services provided by the OS
Pemrograman antarmuka untuk layanan yang disediakan oleh OS

27. What Language is System call usually written in


C or C++

28. What mode does System call runs in


User mode dan kernel mode

29. What does the system call fork() do in linux


Create process

30. Explain how ms-dos runs a program and the difference with free bsd

31. What is system programs


System programs provide a convenient environment for program development and execution.
Program sistem menyediakan lingkungan yang nyaman untuk pengembangan program dan
eksekusi.

32. What are the function of system program


a. File manipulation
b. Status information
c. File modification
d. Programming language support
e. Program loading and execution
f. Communications
g. Application programs

33. In what mode system program runs in


User mode

34. What should we do before designing an OS


 Design and Implementation of OS not “solvable”, but some approaches have proven
successful
 Internal structure of different Operating Systems can vary widely
 Start by defining goals and specifications
 Affected by choice of hardware, type of system

• Desain dan Implementasi OS tidak "dipecahkan", tapi beberapa pendekatan telah


terbukti berhasil
• Struktur internal Sistem Operasi yang berbeda dapat sangat bervariasi
• Mulailah dengan menentukan tujuan dan spesifikasi
• Dipengaruhi oleh pilihan perangkat keras, jenis sistem

35. What are the two goals in OS explain


a. User goals – operating system should be convenient to use, easy to learn, reliable, safe,
and fast
b. System goals – operating system should be easy to design, implement, and maintain, as
well as flexible, reliable, error-free, and efficient

a. Tujuan Pengguna - sistem operasi harus nyaman digunakan, mudah dipelajari, terpercaya,
aman, dan cepat
b. Tujuan sistem - sistem operasi harus mudah untuk merancang, melaksanakan, dan
memelihara, serta fleksibel, dapat diandalkan, bebas kesalahan, dan efisien

36. What are the 2 parts of unix


a. Systems programs
b. The kernel

37. What is layer 0 in OS and what is the highest layer in OS Commented [D2]: Ch 2
Layer 0 is hardware
Highest layer is user Interface

38. What is the difference between process and program


Program is passive entity, process is active, Program becomes process when executable file
loaded into memory
Program adalah entitas pasif, proses aktif, Program menjadi proses ketika file eksekusi dimuat
ke memori

39. How do you start a process

40. What are the parts of process


a. Text section
b. Program counter
c. Stack
d. Data section
e. heap

41. What are the 5 states of process


a. new: The process is being created
b. running: Instructions are being executed
c. waiting: The process is waiting for some event to occur
d. ready: The process is waiting to be assigned to a processor
e. terminated: The process has finished execution

42. What is PCb

43. What information is store in pcb

44. Why is process scheduling important


Maximize CPU use, quickly switch processes onto CPU for time sharing
Maksimalkan penggunaan CPU, proses cepat beralih ke CPU untuk berbagi waktu

45. What are the 3 queues in process scheduling


a. Job queue
b. Ready queue
c. Device queue

46. What are the 2 types of scheduler based on terms


Long-term scheduler and short-term scheduler

47. Which is used more frequently short term or long term scheduler
Short term scheduler

48. What does I/O-bound process mean give an example


spends more time doing I/O than computations, many short CPU bursts
menghabiskan lebih banyak waktu melakukan I / O daripada perhitungan, banyak semburan
CPU pendek

49. What does CPU-bound process mean give an example


spends more time doing computations; few very long CPU bursts
menghabiskan lebih banyak waktu melakukan perhitungan; beberapa semburan CPU sangat
panjang

50. What is context switch?


When CPU switches to another process, the system must save the state of the old process and
load the saved state for the new process via a context switch.
Ketika CPU beralih ke proses lain, sistem harus menyimpan state dari proses yang lama dan
beban negara yang disimpan untuk proses baru melalui switch konteks.

51. What represents context


PCB

52. What are the difference between parent process and children process give 3 differences
Parent process create children processes, which, in turn create other processes, forming a tree
of processes
Proses induk membuat anak proses, yang pada gilirannya menciptakan proses lainnya,
membentuk pohon proses

53. What is Pid


process identified and managed via a process identifier (pid)
Proses diidentifikasi dan dikelola melalui pengidentifikasi proses (pid)

54. What is cascading termination?


if its parent terminates All children terminated

55. What is IPC


(IPC) adalah seperangkat metode untuk pertukaran data antara beberapa threads dalam satu
atau lebih proses.

56. What are the two models of IPC


a. Shared memory no buffer)
b. Message passing

57. What are the advantages of process cooperation


a. Information sharing
b. Computation speed-up
c. Modularity
d. Convenience

58. What is LPC and what model of IPC does it use


LPC adalah internal, tidak berdokumen antar-proses fasilitas komunikasi yang disediakan oleh
kernel Microsoft Windows NT untuk lightweight IPC antara proses pada komputer yang sama.

59. What is a socket


A socket is defined as an endpoint for communication
Sebuah socket didefinisikan sebagai endpoint untuk komunikasi

60. What does stubs have to do with RPC

61. What is the use of pipes and what are two types of pipes that we have discuss. Commented [D3]: Ch 3 Process communication
Bertindak sebagai saluran yang memungkinkan dua proses untuk berkomunikasi
Ordinary Pipes dan Named Pipes
62. What is a thread (goggle it)
63. What are the benefits of threads
a. Responsiveness
b. Resource Sharing
c. Economy
d. Scalability

64. Why are the challenges in multi core programing


a. Dividing activities
b. Balance
c. Data splitting
d. Data dependency
e. Testing and debugging

65. How does a server architecture benefit from multi threads


66. What muti threading model does windows has and what does that model mean
67. What os uses two layer multithread model and doesn’t windows uses this model
68. How does java implement multi threads
Typically implemented using the threads model provided by underlying OS

69. What are the issues with threading? Explain.


a. Semantics of fork() and exec() system calls
b. Thread cancellation of target thread
 Asynchronous or deferred
c. Signal handling
 Synchronous and asynchronous
d. Thread pools
e. Thread-specific data
 Create Facility needed for data private to thread
f. Scheduler activations

70. What does Asynchronous cancellation mean?


Asynchronous cancellation terminates the target thread immediately.
71. What does Deferred cancellation mean?
Deferred cancellation allows the target thread to periodically check if it should be cancelled.
72. What is a thread pool and what are the advantages
Create a number of threads in a pool where they await work
Advantages:
• Usually slightly faster to service a request with an existing thread than create a new
thread
• Allows the number of threads in the application(s) to be bound to the size of the pool
73. What is LWP? And what does it do? And who uses it?

74. What is are the primary structures of threads in windows and which part is in kernel mode and
what part is user mode Commented [D4]: Ch 4 threads
ETHREAD (executive thread block), KTHREAD (kernel thread block), TEB (thread environment
block)

Kernel mode:
ETHREAD
KTHREAD
User mode:
TEB

75. What is CPU and I/O burst cycle?


Proses yang terdiri dari siklus CPU execution dan I / O wait

76. What is Preemptive scheduling and nonpreemtive scheduling ?


Preemptive scheduling
Scheduling yang mengijinkan proses yang sedang dieksekusi untuk ditangguhkan sementara
Nonpreemptive scheduling
Pada saat CPU telah dialokasikan untuk sebuah proses, maka tidak dapat di ganggu

77. What is dispatch latency?


waktu yang diperlukan untuk operator untuk menghentikan satu proses dan menjalankan
proses lain

78. What is CPU utilization?


menjaga CPU sesibuk mungkin

79. What is Throughput?


# (number) of processes yang selesai dijalankan per satuan waktu

80. What is Turnaround time?


jumlah waktu untuk mengeksekusi proses tertentu

81. What is Response time?


amount of time it takes from when a request was submitted until the first response is produced,
not output (for time-sharing environment)

82. Explain how FCFS, SJF and Shortest-remaining-time-first algorithm work? And which one of the
algorithm is priority scheduling?
FCFS=> jika proses yg datang duluan, maka proses tersebut yg dilayani
SJF => Proses diatur menurut shortest next CPU burst
Shortest-remaining-time-first =>
SJF is priority scheduling

83. What is time quantum and how does it work with round robin
Time quantum is a small unit of CPU time

84. How does multilevel queue work with scheduling?

sebuah multilevel queue membagi ready queue kedalam beberapa queue terpisah. Proses secara
permanen diserahkan ke salah satu queue, umumnya didasarkan pada beberapa properti dari proses,
seperti ukuran memori, prioritas proses, atau jenis proses. Setiap queue memiliki algoritma
penjadwalan sendiri.

85. Why is one to one threads better then one to many or many to many based on cpu scheduling?
Karena setiap user-level thread dipetakan ke kernel thread,

86. Why is multi core better then multi processor


Faster and consume less power

87. What kind of cpu scheding does window use Commented [D5]: Ch 5
priority-based preemptive scheduling

88. What is critical section? Commented [D6]: Ch6


di mana proses dapat mengubah variabel umum, mengupdate tabel, menulis file, dan
sebagainya

89. What is deadlock


suatu kondisi dimana proses tidak dapat berjalan

90. What are the criteria for deadlock


Mutual exclusion, Hold and wait, no preemption, Circular wait

91. Does most OS check for deadlock?

92. What is mutual exclusion


hanya satu proses pada suatu waktu dapat menggunakan sumber daya. Jika proses lain
permintaan sumber daya itu, proses yang meminta harus ditunda sampai sumber daya telah
dilepas.

93. What is a safe state


jika tidak terjadi deadlock dan terdapat cara untuk memenuhi semua permintaan sumber daya
yang ditunda tanpa menghasilkan deadlock

94. Learn and understand the safety algorithm


95. How does os recover from deadlock? Commented [D7]: Ch 7 deadlock
Process Termination
Resource Preemption

96. What is a fence in memory


Fence adalah batas antara user dengan OS

97. What MMU and what does it do?


Untuk mengubah alamat virtual ke alamat fisik diperlukan suatu perangkat keras yang bernama
Memory Management Unit (MMU).

98. If a process the size of 50 mb needs to be swap with another process with the same size and the
transfer rate is 25/mbs with disk latency of 4 ms how long is the total context swaping time

99. What is the difference between internal and external fragments

100. What is compaction


Reduce external fragmentation by compaction

101. What method of memory management will have 0 external fragment


Compaction

102. If a page size is 2048 and the process size is 72,766 bytes how many page is needed and
how big is the internal and external fragment
Page size = 2,048 bytes
Process size = 72,766 bytes
35 pages + 1,086 bytes
Internal fragmentation of 2,048 - 1,086 = 962 bytes

103. What is TLB and how does it work with paging


The two memory access problem can be solved by the use of a special fast-lookup
hardware cache called associative memory or translation look-aside buffers (TLBs)

104. What is a segment? Commented [D8]: Ch 8


Suatu segmen adalah unit logika seperti program utama, prosedur, fungsi, metode,
Commented [A9R8]:
obyek, variabel lokal, variabel global, blok umum, stack, tabel simbol, array dan lain-
lain.

105. What is virtual memory


Virtual memory involves the separation of logical memory as perceived by users from
physical memory

106. What is backing store and how does it work with virtual memory
Backing store adalah cakram cepat yang cukup besar untuk menampung salinan dari
semua gambar memori untuk semua pengguna.
107. What is page swaping
suatu proses bisa saja ditukar sementara keluar memori ke sebuah penyimpanan sementara dan
kemudian dibawa lagi ke memori untuk melanjutkan pengeksekusian

108. Page fault


Access to a page marked invalid causes a page fault.

109. Why virtual memory reduces ssd life scycle Commented [D10]: Virtual memory video

110. What is mbr and how does it work with booting


Master Boot Record (MBR) adalah tipe spesial dari boot sector saat awal hardisk
komputer di partisi.
Pada saat anda menyalakan computer, CPU akan menjalakan tes POST. Test ini
bertujuan untuk menganalisa memori,drive,dan por guna memastikan bahwa semua harddrive
bekerja dgn benar. Tes ini jg berupaya menemukan partisi yang dapat di boot pada hard drive
dan memulai MBR.Begitu partisi yg dapat di boot di temukan ,MBR akan mengalihkan
kendali ke boot sector dalam partisi tersebut yg berada pada harddrive,boot sector ini memuat
printah yang diperlukan untuk melanjutkan set0up dan konfigurasi pada computer sebelum
anda menggunakan,

111. What is gpt and what does it do?


standar untuk tata letak tabel partisi pada fisik hard disk , menggunakan pengidentifikasi unik
global (GUID). GPT mengalokasikan 64 bit untuk alamat blok logis, sehingga memungkinkan
ukuran disk maksimum dari 2 64 sektor.

112. how does ssd works and what is it weakness Commented [D11]: Disk I-O video

113. what is files system and is it functions


File System / Sistem Berkas merupakan metoda penyimpanan file pada komputer atau
media penyimpanan komputer dalam mengatur lokasi file tersebut.

Fungsi File System salah satunya untuk memberi nama pada berkas dan meletakkannya
pada media penyimpanan. Fungsi lainnya adalah sebagai konvensi penamaan berkas dan
peletakkan berkas pada struktur direktori. Semua sistem operasi memiliki File Systemnya sendiri
untuk meletakkan file dalam sebuah struktur hirarki.

114. what is meta data and does it contain in filesystem

115. how do you create a file system

116. name 3 filesystem that you know and tell one that does not need to be defrag
FAT64,
117. what is journaling Commented [D12]: filesystem
Computer scientists often find that algorithms and technologies originally
used in one area are equally useful in other areas. Such is the case with the
database log-based recovery algorithms. These logging algorithms have been
applied successfully to the problem of consistency checking. The resulting
implementations are known as log-based transaction-oriented (or journaling)
file systems

Anda mungkin juga menyukai