370 likes | 471 Views
Real Time Operating Systems: Lesson-2: OS File System, IO- Subsystems, Security, NOS and Mobile OS. 1. File System Organisation and Implementation. File - a named entity. - on a magnetic disc, optical disc, or system memory. - a structured data, characters and.
E N D
Real Time Operating Systems: Lesson-2: OS File System, IO- Subsystems, Security, NOS and Mobile OS
File - a named entity - on a magnetic disc, optical disc, or system memory. - a structured data, characters and - Each OS may have differing abstractions for a file - A file may be a structured record on a texts. RAM
POSIX standard for file operations - as a byte stream. with the record of bytes NT Functions – createFile, ReadFile WriteFile, SetFilePointer and Window NT file – a named entity closeHandle
Set of Commands in the POSIX File-System write ( ) – wiring into the file [Like fwrite in ‘C’ read ( ) – read ( ) – read into the file lseek ( )-Set the pointer at for next RD/WR close ( ) – Closing a file Open ( ) – File creation and activation fcntl ( ) –file control
Application Software Application Programming Interface (API) • Block File System - application generates records to be saved into the memory. A file pointer (record) points to a block from the start to the end of the file • Byte Stream File-System: A file pointer (record) points to a block from the start to the end of the file
identity • state – closed, archived • locks and protection fields - • file info – present length, when • created, when last modified • creator or owner • sharing permission
count – Number of directories • media storage details - • blocks transferable per access referring to it
Application Software Application Programming Interface (API) • IO ports are the subsystems of OS device management systems • I/O system differs in the different OSs • I/O system differs in the different OSs.
IO subsystem Hierarchy in a typical OS IO system
Layer 1: Application • Layer 3- O Device Driver Functions Layer 4 – Device Hardware/ Port/ • Interface Card Layer 2: IO Basic Functions
Set of Commands for synchronous and asynchronous IOs aio_write( ) – asynchronous IO read aio_list( ) – list asynchronous IO requests aio_error ( ) – retrieve error status aio_read ( ) – asynchronous IO read aio_cancel – suspend operation
Network means exchange of data frames in the LANs of packets between different host devices (interfaces). Exchange is either in client-server mode or peer-to-peer mode .
Protocols FTP Telnet Communication char device like TCP/IP block device like
NOS Definitions • “an operating system that includes special functions for connecting computers and devices into a local area network (LAN).” • “an OS that has functions for protocol-stacks (for example TCP/IP or Ethernet 80.2.3) plus network device drivers”.
The basic OS has networking functions built-in but a Network operating system usually has software that enhances the basic OS by adding network operation features.
An NOS provides: • remote logins • remote file transfers • interconnections between network devices NOS Kernel handles: • Address Resolution issues
packet identification, • dispatch to appropriate device • interconnections between network devices NOS Kernel essential for host systems on the network.
Application Software • Application Programming Interface (API) • Arcnet • Banyan Vines • PC-NFS, • Novel Netware,
Mobile OS definition: an OS for mobile systems, handheld devices, PDA, telephone, palm computers and pocket computers.
Mobile OSs support the protocols IrDA (Infrared Data Association), Bluetooth and Zigbee so that it connect by infrared and wireless to devices and computer at short distances.
Mobile OS means: • OS of mobile computing or embedded systems (laptop computers or handheld or wireless devices). Examples of mobile OS- Windows CE, Palm OS, PocketPC and Mac OS X Jaguar [for connecting the VPN (Virtual Private Networks] Window XP, PC OS and Symbian
OS should provide protection mechanisms and implement a system administrator (s) defined security policy. For example, a system administrator can define the use of resources to the registered and authorised users (and hence their processes).
Important security Functions Confinement Mechanism Security Policy (Strategy) Authentication Mechanism Authorisation Mechanism Controlled resource sharing Encryption
We learnt • File Manager creates, opens, reads, seeks a record, writes, and closes a file. A file has a file descriptorlike a TCB. • I/O subsystems are an important part of OS services. Example: UART access and the parallel port access.
We learnt (iii) Network operating system is an OS that includes special functions for connecting computers and devices into a local area network (LAN). It is an OS that has functions for protocol-stacks (for example TCP/IP or Ethernet 802.3) plus network device drivers.
We learnt (iv) PocketPC, Windows CE, Palm OS are popular mobile OSs. Embedded systems for mobile systems employ the mobile OSs
We learnt (v) The OS security issues are important considerations and (vi) Protection of memory and resources from any unauthorised write into the PCB or resource, or mix up of accesses of one by another, becomes imperative from an OS security and protection mechanism
We learnt (vi) PocketPC, Windows CE, Palm OS are popular mobile OSs. Embedded systems for mobile systems employ the mobile OSs