Typical function of processor execution mode and operating system kernel

Most processors support at least two execution modes:

  1. Non-privileged mode, that is, user mode
  2. Privileged mode , Namely system mode, control mode or kernel mode

user mode

non-privileged mode and Called user mode, user programs usually run in this mode

Kernel mode

Kernel mode refers to the operating system’s The kernel is the part of the operating system that contains important system functions.
The typical functions of the operating system kernel mode are as follows:

Process management

  • Process creation and termination
  • Process scheduling and dispatch
  • Process switching
  • Process synchronization and support for inter-process communication
  • Management of process control block

Memory management

  • Allocate address space to processes
  • Exchange
  • Management of pages and sections

I/O management

  • Buffer management
  • Assign I/O channels and devices to the process
The reason for using two modes is to protect the operating system and important operating system tables (such as process control blocks) from the user program Interference

support function

interrupt processing

non-privileged state and Called user mode, user programs usually run in this mode

Kernel mode refers to the kernel of the operating system, which is a part of the operating system that contains important system functions.

The typical functions of the operating system kernel mode are as follows:

  • Process creation and termination
  • Process scheduling and dispatch
  • Process switching
  • Process synchronization and support for inter-process communication
  • Management of process control block
  • Allocate address space to the process
  • Exchange
  • Management of pages and segments
  • Buffer management
  • Allocate I/O channels and devices to the process

The reason for using the two modes Yes, in order to protect the operating system and important operating system tables (such as process control blocks) from user program interference

interrupt processing

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5341 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.