2.
Penjadwalan dengan prioritas dengan prempsi tidak memperhatikan saat proses tiba atau saat proses selesai
Correct Answer
A. False
Explanation
The given statement is false. Scheduling with priority and preemption does consider the arrival time and completion time of the processes. In this type of scheduling, processes are assigned priorities based on their importance, and the one with the highest priority is executed first. However, if a process with a higher priority arrives while a lower priority process is already running, preemption occurs, and the higher priority process is given the CPU. Therefore, both the arrival time and completion time of processes are taken into account in priority scheduling with preemption.
3.
Pada penjadwalan dengan prioritas dengan prempsi, TIDAK PERLU menghitung lama sisa proses dari semua proses yang ada
Correct Answer
A. False
Explanation
In scheduling with priority and preemption, it is necessary to calculate the remaining time of all processes in order to determine the priority and make scheduling decisions. Therefore, the statement "TIDAK PERLU menghitung lama sisa proses dari semua proses yang ada" (It is not necessary to calculate the remaining time of all processes) is incorrect. Hence, the correct answer is False.
4.
Dalam penjadwalan dengan preempsi, jika proses dengan sisa proses yang lebih pendek dari proses yang sedang dikerjakan, maka atas dasar prempsi proses yang sedang dikerjakan akan dikeluarkan dari prosesor
Correct Answer
A. True
Explanation
In preemption scheduling, if a process with a shorter remaining time than the currently running process arrives, the currently running process will be removed from the processor. This is because preemption allows higher priority processes to interrupt lower priority processes and take control of the processor. Therefore, the statement "True" is correct.
5.
Berdasarkan tabel berikut, meskipun lama proses B paling kecil tetapi yang diproses adalah proses A karena proses A tiba paling pertama
Correct Answer
A. True
Explanation
Based on the given table, even though the processing time of process B is the smallest, process A is actually processed because it arrives first.
6.
Berdasarkan tabel berikut, jika menggunakan algoritma penjadwalan PTDP, pertama-tama proses A dikerjakan, namun karena preempsi maka diberhentikan saat kedua karena saat kedua proses B tiba dan lama proses B lebih kecil dari sisa proses A (pada saat kedua sisa proses A yaitu 5)
Correct Answer
A. True
Explanation
According to the given table, the PTDP scheduling algorithm first executes process A. However, it is preempted during the second time because process B arrives and the remaining time for process A (which is 5 at the second time) is smaller than the execution time of process B. Therefore, the statement "True" is correct.
7.
Jika menggunakan algoritma penjadwalan PTDP, Berdasarkan tabel bagian atas, pada gambar di bawah setelah proses B selesai yang diproses adalah proses D karena lama proses D sudah tiba saat 5 dan lebih kecil dari sisa proses A
Correct Answer
A. True
Explanation
The explanation for the given correct answer is that according to the PTDP scheduling algorithm, after process B is completed, the next process to be processed is process D. This is because the remaining time for process A is greater than the arrival time for process D, which is 5. Therefore, process D is chosen to be processed next.
8.
Jika menggunakan algoritma penjadwalan PTDP, berdasarkan proses di bawah ini, maka saat mulai proses C yaitu
Correct Answer
A. 14
Explanation
The given sequence represents the arrival time of processes in a scheduling algorithm. The process C starts at time 14 because it is the next available time slot after the previous process has finished. The algorithm follows a first-come-first-serve approach, where processes are executed in the order they arrive. Therefore, process C starts at time 14.
9.
Jika menggunakan algoritma penjadwalan PTDP, berdasarkan tabel berikut, saat rampung proses A yaitu
Correct Answer
A. 14
Explanation
The given table represents the completion times of different processes in the PTDP scheduling algorithm. The completion time of process A is 14, which means that it finishes its execution at time 14.
10.
Berdasarkan proses berikut, lama tanggap proses A yaitu
Correct Answer
A. 14
Explanation
Based on the given process, the time taken for process A to respond is 14.
11.
Berdasarkan tabel berikut, lama tangap proses C yaitu
Correct Answer
A. 23-14=9
Explanation
The given table shows the time intervals for different processes. To find the duration of process C, we subtract the starting time of C (14) from the ending time of C (23). This calculation gives us a duration of 9 units of time.
12.
"Tiba selama" proses B, C, D diperoleh dari lama proses A dikurangi saat tiba proses masing-masing (B, C, D)
Correct Answer
A. True
Explanation
The given statement suggests that the arrival time for processes B, C, and D is obtained by subtracting the arrival time of each process (B, C, D) from the arrival time of process A. This means that the arrival time for processes B, C, and D is calculated relative to the arrival time of process A. Therefore, the answer "True" is correct.
13.
Algoritma Round Robin BUKAN termasuk penjadwalan tanpa prioritas dengan preempsi
Correct Answer
A. False
Explanation
The given statement is false. The Round Robin algorithm is a scheduling algorithm that is used in operating systems to manage processes. It is a preemptive scheduling algorithm, which means that it can interrupt a running process and allocate the CPU to another process. Therefore, it does include preemption and is not a non-preemptive scheduling algorithm.
14.
Algoritma yang menggunakan kuantum waktu yaitu
Correct Answer
A. Round Robin
Explanation
Round Robin adalah algoritma penjadwalan yang menggunakan kuantum waktu. Dalam algoritma ini, setiap proses diberikan waktu eksekusi yang tetap, yang disebut sebagai kuantum waktu. Setelah proses berjalan selama kuantum waktu tersebut, proses tersebut dipindahkan ke belakang antrian dan proses berikutnya diberikan kesempatan untuk dieksekusi. Hal ini memastikan bahwa setiap proses mendapatkan waktu eksekusi yang adil dan mengurangi kemungkinan terjadinya starvation.
15.
Pada algoritma round robin prosesor akan melayani setiap proses berdasarkan antrian
Correct Answer
A. True
Explanation
The given statement is true. In the round-robin algorithm, the processor serves each process based on a queue. This means that processes are executed in a cyclic manner, with each process being allocated a fixed time slice or quantum. Once a process's time slice expires, it is moved to the end of the queue and the next process in the queue is given a chance to execute. This ensures that each process gets a fair share of the processor's time and prevents any single process from monopolizing the CPU.
16.
Algoritma Round robin disebut juga
Correct Answer(s)
A. Time slice
A. Putar gelang
Explanation
The correct answer is "Time slice" and "Putar gelang". The term "Time slice" refers to the amount of time allocated to each process in a round-robin scheduling algorithm. It determines how long each process gets to execute before being preempted. On the other hand, "Putar gelang" is the Indonesian translation for "Round robin", which is a scheduling algorithm that cyclically assigns a time slice to each process in the system. Thus, both terms are related to the concept of round-robin scheduling and explain different aspects of it.
17.
Setelah proses B berikutnya adalah proses (jawab 1 huruf besar)
Correct Answer(s)
A
Explanation
The given question states that after process B, the next process is represented by the letter "A". This implies that the sequential order of the processes is being asked. Therefore, the correct answer is "A" because it is the process that follows after B.
18.
Berdasarkan gambar proses berikut, saat rampung proses C adalah
Correct Answer(s)
21
Explanation
Based on the given process diagram, when process C is completed, the value is 21.
19.
Berikut adalah gambar proses dengan algoritma round robin. Meskipun kuantum waktu 3, tetapi proses C hanya 1 waktu dikerjakan lalu diberhentikan krn pada saat baru 1 waktu proses dikerjakan, proses D tiba dan lama proses D lebih besar dari sisa proses C sehingga proses D bisa mem-preempsi proses C yang sedang berlangsung
Correct Answer
A. True
Explanation
The explanation for the given correct answer is that in the round-robin algorithm, each process is given a fixed time quantum to execute. In this scenario, even though the time quantum is 3, process C is only able to execute for 1 unit of time before being preempted. This is because process D arrives and its remaining execution time is greater than the remaining execution time of process C. As a result, process D is able to preempt the execution of process C. Therefore, the statement "proses D bisa mem-preempsi proses C yang sedang berlangsung" is true.
20.
Rerata 9,6 diperoleh dari 47 dibagi 5 buah proses
Correct Answer
A. True
Explanation
The given statement states that the mean of 9.6 is obtained by dividing 47 by 5 processes. To verify the statement, we can calculate the mean by dividing 47 by 5, which equals 9.4. Since the calculated mean matches the given mean, the statement is true.