Results 1 to 1 of 1

Thread: Semaphore mit Round Robin

  1. #1
    Principal
    Join Date
    Sep 2010
    Location
    1040
    Posts
    79
    Thanks
    24
    Thanked 3 Times in 2 Posts

    Semaphore mit Round Robin

    Hallo alle


    ich habe das folgende Bsp, das Round Robin mit 3 Zeiteinheit und Semaphore verwendet.

    Proc_1 Start: 0 Laufzeit: 8


    1: p(s)
    .
    .
    .
    8: v(s)
    Proc_2 Start: 2 Laufzeit: 8
    1: p(s)
    .
    .
    .
    8: v(s)


    Wie ich es Graphisches darstelle.
    RUNNING = R
    READY = -
    BlOCK = Q


    P1| R R R - - - R R R R R - - - -
    |
    P2| - R Q Q Q Q Q Q - - R R R
    |___________________________________


    s:1 0 0 0 -1-1-1-1-1-1-1 0 0 0 0 0



    Wie es Verstande habe, dass Round Robin das Process 1 in Ready list halten wird, wenn Process 2 laufen darf. Oder Habe ich es falsch verstanden?


    Vielen Dank im voraus,
    Camara

    ps: bitte sehen das bsp.txt
    Attached Files Attached Files
    Last edited by Camara; 25-06-2012 at 12:31.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •