← English articles English · technology · advanced · 184 words · ~1 min
Operating System Kernel Design การออกแบบเคอร์เนลระบบปฏิบัติการ
Operating System Kernel Design
The kernel is the privileged core of an operating system that manages hardware resources and enforces isolation between user processes.
Recorded narration All 9 sentences have audio clips — tap any line to start there.
▶ Listen Thai Sentences Word taps Test yourself
Script Word-class colours
Sign in to save texts and track what you've read.
▶ The kernel is the lowest layer of an operating system , running with full hardware privilege . เคอร์เนลคือชั้นต่ำสุดของระบบปฏิบัติการ ทำงานด้วยสิทธิ์ฮาร์ดแวร์เต็มรูปแบบ
▶ It arbitrates access to the CPU , memory , and peripherals , and provides system calls as the only legal interface between user-space programs and hardware . มันเป็นตัวกลางในการเข้าถึง CPU หน่วยความจำ และอุปกรณ์ต่อพ่วง รวมทั้งให้ system call เป็นส่วนต่อประสานทางกฎหมายเพียงอย่างเดียวระหว่างโปรแกรมใน user space กับฮาร์ดแวร์
▶ A monolithic kernel , as used by Linux , runs all core services — schedulers , file systems , device drivers , networking stacks — in a single privileged address space . monolithic kernel เช่นที่ Linux ใช้ รัน service หลักทั้งหมด ได้แก่ scheduler ระบบไฟล์ device driver และ networking stack ในพื้นที่ address เดียวที่มีสิทธิ์
▶ This design is fast because subsystems communicate via direct function calls , but a bug in any driver can crash the entire system . การออกแบบนี้รวดเร็วเพราะ subsystem สื่อสารผ่าน function call โดยตรง แต่บั๊กใน driver ใด ๆ อาจทำให้ระบบทั้งหมดล่มได้
▶ A microkernel moves most services into user-space servers , communicating through message passing . microkernel ย้าย service ส่วนใหญ่ไปไว้ใน server ใน user space โดยสื่อสารผ่านการส่งข้อความ
▶ This isolation improves fault tolerance and security at the cost of inter-process communication overhead ; Minix 3 and seL4 follow this model . การแยกส่วนนี้ช่วยเพิ่มความทนทานต่อความผิดพลาดและความปลอดภัย แต่แลกกับค่าใช้จ่ายในการสื่อสารระหว่างกระบวนการ Minix 3 และ seL4 ใช้แนวทางนี้
▶ The virtual memory subsystem maps each process into its own address space using page tables . subsystem หน่วยความจำเสมือนจับคู่แต่ละกระบวนการกับ address space ของตัวเองโดยใช้ page table
▶ The MMU enforces these mappings in hardware , so one process cannot read or overwrite another's memory , providing the foundation of process isolation . MMU บังคับใช้การจับคู่เหล่านี้ในฮาร์ดแวร์ ดังนั้นกระบวนการหนึ่งจึงไม่สามารถอ่านหรือเขียนทับหน่วยความจำของอีกกระบวนการได้ ซึ่งเป็นรากฐานของการแยกกระบวนการ
▶ The scheduler decides which thread runs on which CPU core at each moment , balancing throughput , latency , and power consumption using algorithms such as Completely Fair Scheduler in Linux . ตัวกำหนดตารางงานตัดสินใจว่าเธรดใดทำงานบนคอร์ CPU ใดในแต่ละขณะ โดยสร้างสมดุลระหว่างปริมาณงาน เวลาแฝง และการใช้พลังงาน ด้วยอัลกอริทึมเช่น Completely Fair Scheduler ใน Linux
colour key Noun Verb Adjective Adverb Pronoun Particle Conjunction Determiner
← Previous All technology Next →