Page 63 - OS | TOPIC 1 | INTRODUCTION TO OPERATING SYSTEM
P. 63

An analogy for the relationship

            between system calls and an
        Application Programming Interface
             (API) is when a user uses a

         smartphone app to communicate

             with a smart home system.









                            1

                            OS - SHA


         An Operating System is represented
         by  the  Smart  Home  Automation                                                   2

         (SHA),  which  is  responsible  for                                                API

         managing          and      controlling        the
         system's  different  resources  and                     The  smartphone  app  represents  the

         functionalities.                                        API, which serves as an intermediary
                                                                 that  allows  users  (applications)  to
                                                                 interact  with  the  Smart  Home

                              3                                  Automation  (operating  system)  in  a

                            SYSTEM CALLS                         standardized and simplified manner.


        When the user interacts with the app

        by  tapping  buttons  or  issuing                                           4
        commands,  the  app  translates  these                                     SYSTEM CALLS - API

        actions  into  specific  requests  or

        instructions  (system  calls)  that  the                   Similar to this, when an application
        smart  home  system  can  understand                       uses  the  API,  it  makes  calls  or

        and execute.                                               requests  to  particular  operating

                                                                   system functions or services (called

                                                                   system  calls)  in  order  to  carry  out

                                                                   operations  like  file  input/output,
                                                                   process  management,  or  network

                                                                   connection.


                                                                                                                  55
   58   59   60   61   62   63   64   65   66   67   68