We must determine whether this new system state is safe. To do so, we
execute our safety algorithm and find that the sequence
satisfies the safety requirement. Hence, we can immediately grant the request
of process P1.
You should be able to see, however, that when the system is in this state, a
request for (3,3,0) by P4 cannot be granted, since the resources are not available.
Furthermore, a request for (0,2,0) by P0 cannot be granted, even though the
resources are available, since the resulting state is unsafe.
We leave it as a programming exercise for students to implement the
banker’s algorithm.
เราต้องตรวจสอบว่าสถานะของระบบใหม่นี้ปลอดภัย การทำเช่นนั้น เรา
เรียกใช้อัลกอริทึมของเราปลอดภัย และพบว่าลำดับ < P1, P3, P4, P0, p 2 >
ตรงตามความต้องการความปลอดภัย ดังนั้น เราสามารถให้คำทันที
กระบวนการ P1 ได้
คุณควรสามารถดู อย่างไรก็ตาม ที่เมื่อระบบอยู่ในสถานะนี้ การ
ไม่ได้รับคำขอ (3,3,0) โดย P4 เนื่องจากทรัพยากรใช้ไม่ได้
นอกจากนี้ คำขอ (0,2,0) โดย P0 ไม่ได้รับ แม้
ทรัพยากรได้ เนื่องจากรัฐได้จะไม่ปลอดภัยได้
เราปล่อยให้มันเป็นการออกกำลังกายโปรแกรมสำหรับนักเรียนใช้การ
อัลกอริทึมของนายธนาคาร
การแปล กรุณารอสักครู่..
![](//thimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)