1. Trang chủ
  2. » Công Nghệ Thông Tin

Bài giảng Hệ thống máy tính: Chương 8 - TS. Trần Thị Minh Khoa

156 8 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

Bài giảng Hệ thống máy tính: Chương 8 Quản lý nhập xuất và quản lý hệ thống files, cung cấp cho người học những kiến thức như: /O management; File System management. Mời các bạn cùng tham khảo

Chap8: QL NHẬP XUẤT & QL HỆ THỐNG FILES (I/O management & File System management) GV: TS Trần Thị Minh Khoa ()(6t) I/O management (Stalling Chap11 + Siberchattz Chap 13)      I/O request packets (IRPs) I/O hardware I/O management Plug and Play (PnP) File System management (Stalling Chap12 + Siberchattz Chap 11&12)  OS Architecture I/O Goals Cung cấp I/O thích hợp cho ứng dụng Cung cấp framework (khuôn khổ) làm việc sau:        Linh động load/unload drivers Hỗ trợ quản lý lượng để hệ thống thiết bị tự bật chế độ tiết kiệm lượng Phân lớp driver I/O khơng đồng Bảo vệ an tồn Overview of the Windows I/O Model Tất yêu cầu I/O đến driver gởi dạng I/O request packets (IRPs) Hoạt động I/O phân lớp Trình quản lý I/O xác định tập công việc chuẩn (standard routines) mà drivers hỗ trợ      Yêu cầu Tuỳ chọn I/O Request Packets (IRPs) Với yêu cầu I/O từ user-mode, trình quản lý I/O cấp IRP từ hệ thống nhớ không phân trang Dựa vào việc xử lý tập tin chức I/O y/c từ user, trình ql I/O chuyển IRP tới việc phân phối driver thích hợp   Structure of an IRP Major and Minor IRP Major function IRP_MJ_CLOSE,IRP_MJ_CREATE,IRP_MJ_DEVICE_CONTROL ,IRP_MJ_INTERNAL_DEVICE_CONTROL,IRP_MJ_PNP,IRP_M J_POWER,IRP_MJ_READ   Minor Function IRP_MN_START_DEVICE,IRP_MN_QUERY_ID,IRP_MN_EJEC T I/O hardware I/O hardware   Controller có hay nhiều registers chứa data control signal CPU giao tiếp với controller cách đọc ghi bit register  The I/O instruction  memory-mapped I/O (the device-control registers are mapped into the address space of the processor) 10 Access Control Matrix  Now give the first group Full Control CACLS MakeABackup.bat /E /G "Power Users":F  Give Finance group Full Control of folder and all sub-folders CACLS c:\docs\work /E /T /C /G "FinanceUsers":F 142 Access Control Matrix  In Linux/Unix the Access Controls are:    143 R: Read W: Write X: Execute Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups:  User User Group World   144 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups:  User -you User Group – everyone in your group World – everyone with a login to the system/ others   145 Access Control Matrix   In Linux/Unix access to a file can assigned to one of three groups: -rwxrwxrwx User User Group World  146 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups: -rwxrwxrwx  -111111111  147 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups: -rwxr-xr-x  -111101101  148 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups: -rwx x x  -101001001  149 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups: -rwxrwxrwx  -111111111 - 7  150 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups: -rwxr-xr-x  -111101101 - 5  151 Access Control Matrix  In Linux/Unix access to a file can assigned to one of three groups: -rwx x x  -111001001 - 1  152 Access Control Matrix  If we want to grant permissions to file, e.g MakeABackup.bat, we do:  chmod 755 MakeABackup.sh chmod 777 MakeABackup.sh chmod 700 MakeABackup.sh   153 Access Control Matrix   In Linux/Unix, access to a file can assigned to one of three groups: -rwxrwxrwx User User Group World  154 Access Control Matrix   In Linux/Unix, access to a folder/directory can assigned to one of three groups: drwxrwxrwx User User Group World  155 Access Control Matrix 156 ... đọc tt đọc 12 byte Hệ thống trả data sẵn sàng , ko chờ cho new data OS trả lỗi “no data”  14 Ví dụ, hệ thống POSIX ( Linux , OS X, … ) trả lỗi EAGAIN đọc file mở để đọc non-blocking IO ko có... PnP manager and user-mode Setup PnP manager -> user-mode Setup components direct the kernel-mode PnP manager to load the function and filter drivers 27 End of I/O management!!! 28 File Management...   Các thiết bị - device Bộ điều khiển thiết bị - device controller Trình điều khiển thiết bị - device driver 15 Device management  Các thiết bị cần có phần mềm điều khiển - gọi device driver

Ngày đăng: 28/01/2022, 09:30