Message Passing Systems (Part 3)

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 54

  • @samuelkhongthaw9405
    @samuelkhongthaw9405 2 роки тому +22

    The message passing system is implemented with calls to two primitives, i.e., 1) send() and 2) receive(). These primitives can be synchronous(blocking) or asynchronous(non-blocking).
    Synchronous send() : The process waits until the sent message is received by the receiving process
    Asynchronous send(): The sending process sends a message and immediately resumes operation.
    Synchronous receive(): The receiver blocks until a message is available.
    Asynchronous receive(): The receiver eithers receives a message or null.
    No matter the type of message passing system(direct/indirect), the messages that are exchanged reside in a temporary buffer/queue. The buffer can be of 3 types:
    1) Zero capacity buffer: Here, the sender must wait for the receiving process to receive the message before resuming execution. In other words, the link cannot have any messages waiting in it.
    2) Bounded buffer: Here, the queue has a finite length. If the buffer is not full then the sender can resume execution after sending a message. But, if the buffer is full then the sender must block itself.
    3) Unbounded buffer: Here, the queue is of infinite size. The sender never blocks.

  • @quratraja7391
    @quratraja7391 4 роки тому +26

    So, sending process can either be synchronous or asynchronous. In synchronous, sending process is block until already sent message is received by receiver. In asynchronous, sending process, after sending message, continues with it's execution. Buffers msy be involved in this communication. Buffers can store messages in the form of queue when receiver is already busy with one message. Buffers me be of zero size, bounded or unbounded depending upon the number of messages they can store in the queue.

  • @hoangminhchau2187
    @hoangminhchau2187 Рік тому +6

    1) Synchronous or asynchronous communication
    - Processes can communicate through a call to send() and receive()
    - These calls can be blocking (synchronous) or non-blocking (asynchronous)
    - Send blocking: the sender is blocked until the receiver receives the message
    - Send non-blocking: the sender can send the message and then resume its operation
    - Receive blocking: the receiver needs to wait for the message from the sender
    - Receive non-blocking: the receiver receives a valid message or null
    2) Buffering
    - A buffer acts as a temporary queue for processes to send and receive messages
    - 3 types of buffer:
    + Zero capacity: no waiting message in the buffer. The sender is blocked until the receiver receives the message
    + Bounded buffer: The buffer has a fixed size. The sender can send messages whenever there is an available space in the buffer. But when the buffer is full, the sender is blocked until a space is available
    + Unbounded buffer: The buffer has infinite space. The sender can send any number of messages and resume its operation

  • @codingKloud8780
    @codingKloud8780 3 роки тому +4

    Very calm explanation
    Just love it

  • @dennisorbison7318
    @dennisorbison7318 4 роки тому +6

    you sir indirectly helped me understand how channels work in golang.

    • @hetaeramancer
      @hetaeramancer 3 роки тому +1

      what is golang

    • @dennisorbison7318
      @dennisorbison7318 3 роки тому

      @@hetaeramancer Golang is a Programming that was created by google

    • @hetaeramancer
      @hetaeramancer 3 роки тому

      @@dennisorbison7318 oh okay, is that your main language? what other languages do you know? i know C and Java and if you convince me enough i would probably learn Golang ;)

    • @reborn4612
      @reborn4612 3 роки тому

      and you make me realise that it is basicaly how channels in c works, thanks dude :D

  • @farahmohamed2104
    @farahmohamed2104 Рік тому +1

    clear explanation on the concept of buffering.

  • @hasibullahwardak4514
    @hasibullahwardak4514 6 років тому +12

    Very good videos, please add the rest vidoes of this course as soon as possible
    bcz my exams are fst coming, I m learning very well from this toturial

    • @akshaydhokad2127
      @akshaydhokad2127 6 років тому +2

      Same here..neso Academy please upload all the remaing videos asap.

  • @HammadManzoor-jf8mx
    @HammadManzoor-jf8mx Місяць тому

    Thankeww for providing these worthy lectures ❤️

  • @srity_sherni
    @srity_sherni 6 років тому +3

    Plz Neso academy! Upload more videos! I badly want it 😭! Day after tomorrow is my exam and I'm starving for your videos!! 😭

  • @justanaverageguy4739
    @justanaverageguy4739 3 роки тому +2

    Ok after creating React app it's pretty easy to understand (axios promises)

  • @mohanrajs9917
    @mohanrajs9917 3 роки тому

    Thank you so much sir..... Clearly explained.......

  • @ahmadreza7508
    @ahmadreza7508 5 років тому +1

    Thank you so much for this video

  • @chauhanshanu74268
    @chauhanshanu74268 Рік тому

    thank you sir 🙏

  • @subee128
    @subee128 10 місяців тому

    Thank you so much

  • @arujain1690
    @arujain1690 3 роки тому +1

    what "blocking" means in Blocking send/receive?

  • @beea905
    @beea905 6 років тому +1

    Greatest channel EVER!!! Thank you very much
    You helped me in Digital Hardware course and also in this course :)

  • @praneshacharya6115
    @praneshacharya6115 3 роки тому +1

    Sir,
    1) Allow a link to be associated with two processes at most
    w.r.t above point, If so, if P1 wants to communicate with more processes then, is it necessary to create more links as well as more mailboxes where each mailbox associated with each process?
    2) Allow at most one process at a time to execute a receive() operation.
    If so, if P2 is executing receive() function, then what is P1 doing at this time? If idle, is is not waste of resource?
    are these not disadvantages of indirect communication?

  • @saumyagupta8163
    @saumyagupta8163 4 роки тому +2

    Sir can you please post a video on some practice questions based on interprocess communication it will be very helpful for gate and all other competitive exams aspirants .

  • @oneloveafrica8860
    @oneloveafrica8860 Рік тому

    so how buffer overflow happen?

  • @abhilashadeshwar8382
    @abhilashadeshwar8382 4 роки тому

    Please add videos of remaining topics we are waiting

  • @ayushiydvKG
    @ayushiydvKG 6 місяців тому

    tysm sir

  • @technicaljethya993
    @technicaljethya993 2 роки тому

    Thanks 😊🫂

  • @himanshu4807
    @himanshu4807 5 років тому

    thank you

  • @sakinafatima
    @sakinafatima 4 роки тому

    best videos thankuuuu💕

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 4 роки тому

    Thankyou sir

  • @ayushiydvKG
    @ayushiydvKG 6 місяців тому

    thnx

  • @harshaphaneendra217
    @harshaphaneendra217 3 роки тому

    Contents are good w.r.t whole OS series, explaining just once would have been more effective rather repeating the same thing twice or thrice!! Think about it.

  • @paveenkumar1618
    @paveenkumar1618 5 років тому

    Please Upload more Videos

  • @chetanaggarwal3637
    @chetanaggarwal3637 4 роки тому

    good and keep it up

  • @kpc108
    @kpc108 5 місяців тому

    how can i gate a notes of this lecture ?
    some one tell me

  • @arijitsh7
    @arijitsh7 6 років тому +5

    I am first. Nice video

  • @techmoon_
    @techmoon_ 3 роки тому

    Tnx a lot

  • @sravanikalluri7874
    @sravanikalluri7874 5 років тому

    Please add continuation videos.....

  • @UshaDevi-pc5gh
    @UshaDevi-pc5gh 5 років тому

    Thanq

  • @rahuljangir7196
    @rahuljangir7196 5 років тому

    Thanks

  • @yupp_harish3936
    @yupp_harish3936 Рік тому

    recieve is confusing

  • @pritamkrishna1977
    @pritamkrishna1977 5 років тому +6

    U have not explained automatic and explicit buffering.

    • @anandgupta8529
      @anandgupta8529 4 роки тому

      arey bhai bhai bhai

    • @pritamkrishna1977
      @pritamkrishna1977 4 роки тому

      @@anandgupta8529 kha kha phuch jata hai

    • @joshnavimanche263
      @joshnavimanche263 4 роки тому

      they said about Buffering means automatic and explicit buffering

    • @gerwinterpstra8698
      @gerwinterpstra8698 3 роки тому +1

      Explicit buffering is the buffering method with a limited queue. Automatic buffering is the one with an infinite queue.

  • @arfatjaya5420
    @arfatjaya5420 6 років тому

    awssssssssssssssssssmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

  • @tekszhufuni2963
    @tekszhufuni2963 Рік тому

    Your explanation is so limited..

  • @1939roy
    @1939roy 2 роки тому

    Very pedagogical approach 👎👎

  • @atinkushwaha4432
    @atinkushwaha4432 4 роки тому

    boring

  • @muhammadzahidiqbal695
    @muhammadzahidiqbal695 2 роки тому

    Poor content

  • @Ahmed_Alaini
    @Ahmed_Alaini 10 місяців тому

    Thank you very much

  • @tatageresu
    @tatageresu 3 роки тому

    Thank you

  • @MonikaKumari-er4de
    @MonikaKumari-er4de Рік тому

    thankyou sir