SlideShare a Scribd company logo
Mach Kernel




4/9/2013     arifch2009@gmail.com
• Mach is object-oriented system.

• Data and the operations that manipulate that data are
  encapsulated into an abstract object..

• The details of how these operations are implemented are
  hidden, as are the internal data structures.

• Use of an object is done by invoking its defined

• It allows objects to reside anywhere in a network of Mach
  systems, transparent to the user.

4/9/2013                arifch2009@gmail.com
Mach’s basic abstractions




4/9/2013            arifch2009@gmail.com
• Task : A task is an execution environment , a traditional
  process would be implemented as a task with a single thread
  of control.
    – May have multiple thread.
    – Resources : Address Spaces, Threads, Port rights, ports sets, local
      name spaces.
    – task_create(parent_task, inherit_memory, child_task)


• Thread : is the basic unit of execution and must run in the
  context of a task (which provides the address space).
    – All threads within a task share the tasks’ resources (ports, memory,
      and so on).
    – The threads belonging to a single task can execute in parallel at
      different processors in a shared-memory multiprocessor.
    – thread_create(parent_task, child_thread)
    – thread_set_state(thread, flavour, new_state, count)
    – Thread_resume(thread)
  4/9/2013                      arifch2009@gmail.com
• Port : is a unicast, unidirectional communication channel
  with an associated message queue.
    – a task must have a port right to send a message to a port.
    – Communication is accomplished by sending messages to ports.
    – messages are queued at the destination port if no thread is
      immediately ready to receive them.


• Port Set : Set of ports treated as a single unit when
  receiving a message.
    – They share a common message queue.
    – Each received message identifies the individual port




  4/9/2013                     arifch2009@gmail.com
• Messages : is the basic method of communication
  between threads in Mach.
    – Contain Message header.
    – It is a typed collection of data objects.
    – Port rights are passed in messages;




• Memory object : is a source of memory; tasks can
  access it by mapping portions of an object (or the entire
  object) into their address spaces.




 4/9/2013                        arifch2009@gmail.com
Communication Model
• Ports are the channel where communication occurs by
  sending message to ports.
• Mach provides a single system call for message passing:
  mach_msg
mach_msg(msg_header, option, snd_siz, rcv_siz, rcv_name,
 timeout, notify)




 4/9/2013                 arifch2009@gmail.com
• The header is composed of:
      – Port destination.
      – Answer port.
      – Operation identifier.
      – Size of the data list.




4/9/2013                   arifch2009@gmail.com
4/9/2013   arifch2009@gmail.com

More Related Content

PPTX
Chorus - Distributed Operating System [ case study ]
PPT
dos mutual exclusion algos
PPT
IPV4 Frame Format
PDF
Deadlock in distribute system by saeed siddik
PPTX
Algorithm analysis in fundamentals of data structure
PPTX
Address mapping
PPT
Ddbms1
PPTX
Structure of shared memory space
Chorus - Distributed Operating System [ case study ]
dos mutual exclusion algos
IPV4 Frame Format
Deadlock in distribute system by saeed siddik
Algorithm analysis in fundamentals of data structure
Address mapping
Ddbms1
Structure of shared memory space

What's hot (20)

PDF
8. mutual exclusion in Distributed Operating Systems
PPT
Chapter 11 - File System Implementation
PPT
Classical problem of synchronization
PDF
Semaphores
PPTX
Module 2_ Divide and Conquer Approach.pptx
PPTX
Associative Memory in Computer architecture
PPTX
Synchronization Pradeep K Sinha
PPT
Clock synchronization in distributed system
PPTX
Directory implementation and allocation methods
PPSX
Issues in Data Link Layer
PPTX
Reader/writer problem
DOC
Unit 3 daa
DOC
Distributed Mutual exclusion algorithms
PPT
Greedy method by Dr. B. J. Mohite
PPTX
Hashing Technique In Data Structures
PPTX
Divide and conquer - Quick sort
PPTX
2 phase locking protocol DBMS
PPTX
Program activation records
PPTX
Desktop and multiprocessor systems
PPTX
Allocating of Frames.pptx
8. mutual exclusion in Distributed Operating Systems
Chapter 11 - File System Implementation
Classical problem of synchronization
Semaphores
Module 2_ Divide and Conquer Approach.pptx
Associative Memory in Computer architecture
Synchronization Pradeep K Sinha
Clock synchronization in distributed system
Directory implementation and allocation methods
Issues in Data Link Layer
Reader/writer problem
Unit 3 daa
Distributed Mutual exclusion algorithms
Greedy method by Dr. B. J. Mohite
Hashing Technique In Data Structures
Divide and conquer - Quick sort
2 phase locking protocol DBMS
Program activation records
Desktop and multiprocessor systems
Allocating of Frames.pptx
Ad

Similar to Mach Kernel (20)

PPT
Mac Memory Analysis with Volatility
PPT
Chapter 6 os
PDF
virtual memory management in multi processor mach os
PPT
Processes and Threads in Windows Vista
PPTX
Distributed Shared Memory Systems
PPT
Borthakur hadoop univ-research
PPTX
macospptok.pptx
PPTX
Multivariate algorithms in distributed data processing computing.pptx
PPTX
Multivariate algorithms in distributed data processing computing.pptx
PPTX
PPTX
Distributed Shared Memory Systems
PPTX
Chapter 4 - Operating Systems Threads.pptx
PPTX
PPTX
Memory models in c#
PPTX
UNIT I DIS.pptx
PPTX
Early Experiences with the OpenMP Accelerator Model
PDF
Rtos part2
PPT
NeXTBSD aka FreeBSD X
PPT
PPT
parallel programming models
Mac Memory Analysis with Volatility
Chapter 6 os
virtual memory management in multi processor mach os
Processes and Threads in Windows Vista
Distributed Shared Memory Systems
Borthakur hadoop univ-research
macospptok.pptx
Multivariate algorithms in distributed data processing computing.pptx
Multivariate algorithms in distributed data processing computing.pptx
Distributed Shared Memory Systems
Chapter 4 - Operating Systems Threads.pptx
Memory models in c#
UNIT I DIS.pptx
Early Experiences with the OpenMP Accelerator Model
Rtos part2
NeXTBSD aka FreeBSD X
parallel programming models
Ad

More from Arif A. (7)

PDF
Mobile cloud2020
PDF
Arif's PhD Defense (Title: Efficient Cloud Application Deployment in Distrib...
PPTX
Introduction Mobile cloud
PPTX
Architecture of ibm 3838
DOCX
Ibm 3838
PPT
Automatic speech recognition
PPT
Query processing and optimization
Mobile cloud2020
Arif's PhD Defense (Title: Efficient Cloud Application Deployment in Distrib...
Introduction Mobile cloud
Architecture of ibm 3838
Ibm 3838
Automatic speech recognition
Query processing and optimization

Recently uploaded (20)

PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Classroom Observation Tools for Teachers
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
master seminar digital applications in india
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Anesthesia in Laparoscopic Surgery in India
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Final Presentation General Medicine 03-08-2024.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Cell Structure & Organelles in detailed.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Presentation on HIE in infants and its manifestations
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial diseases, their pathogenesis and prophylaxis
Classroom Observation Tools for Teachers
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
master seminar digital applications in india
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
RMMM.pdf make it easy to upload and study
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

Mach Kernel

  • 1. Mach Kernel 4/9/2013 arifch2009@gmail.com
  • 2. • Mach is object-oriented system. • Data and the operations that manipulate that data are encapsulated into an abstract object.. • The details of how these operations are implemented are hidden, as are the internal data structures. • Use of an object is done by invoking its defined • It allows objects to reside anywhere in a network of Mach systems, transparent to the user. 4/9/2013 arifch2009@gmail.com
  • 4. • Task : A task is an execution environment , a traditional process would be implemented as a task with a single thread of control. – May have multiple thread. – Resources : Address Spaces, Threads, Port rights, ports sets, local name spaces. – task_create(parent_task, inherit_memory, child_task) • Thread : is the basic unit of execution and must run in the context of a task (which provides the address space). – All threads within a task share the tasks’ resources (ports, memory, and so on). – The threads belonging to a single task can execute in parallel at different processors in a shared-memory multiprocessor. – thread_create(parent_task, child_thread) – thread_set_state(thread, flavour, new_state, count) – Thread_resume(thread) 4/9/2013 arifch2009@gmail.com
  • 5. • Port : is a unicast, unidirectional communication channel with an associated message queue. – a task must have a port right to send a message to a port. – Communication is accomplished by sending messages to ports. – messages are queued at the destination port if no thread is immediately ready to receive them. • Port Set : Set of ports treated as a single unit when receiving a message. – They share a common message queue. – Each received message identifies the individual port 4/9/2013 arifch2009@gmail.com
  • 6. • Messages : is the basic method of communication between threads in Mach. – Contain Message header. – It is a typed collection of data objects. – Port rights are passed in messages; • Memory object : is a source of memory; tasks can access it by mapping portions of an object (or the entire object) into their address spaces. 4/9/2013 arifch2009@gmail.com
  • 7. Communication Model • Ports are the channel where communication occurs by sending message to ports. • Mach provides a single system call for message passing: mach_msg mach_msg(msg_header, option, snd_siz, rcv_siz, rcv_name, timeout, notify) 4/9/2013 arifch2009@gmail.com
  • 8. • The header is composed of: – Port destination. – Answer port. – Operation identifier. – Size of the data list. 4/9/2013 arifch2009@gmail.com
  • 9. 4/9/2013 arifch2009@gmail.com

Editor's Notes

  • #8: In a request/response messaging pattern, one party sends a request message and the receiving party returns a response message. Two typical examples of request/response processing are the interaction that a browser has with a Web server using the HTTP adapter, and Web service processing using the Simple Object Access Protocol (SOAP) adapter