This presentation is the property of its rightful owner.
Sponsored Links
1 / 37

Φροντιστ ήριο Εργ. Λειτουργικών Συστημάτων PowerPoint PPT Presentation


  • 81 Views
  • Uploaded on
  • Presentation posted in: General

Φροντιστ ήριο Εργ. Λειτουργικών Συστημάτων. Αλγ όριθμοι ανάθεσης μνήμης. 4 η εργασία 2012-13. 1 ο Πρόβλημα Αναπτύξτε μια νέα κλήση του συστήματος (system call) στα πλαίσια του διαχειριστή διεργασιών (process manager) που να επιστρέφει τα εξής στοιχεία: Το πλήθος των οπών μνήμης.

Download Presentation

Φροντιστ ήριο Εργ. Λειτουργικών Συστημάτων

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


3244795

.


4 2012 13

4 2012-13

  • 1

  • (system call) (process manager) :

    • .

    • .

  • 1 :

    • <tab> mb


3244795

  • 3.1.5 , virtual memory (pages .), .

  • hole list.


System call

system call

  • system call

  • system call

  • prototype


Do gethinfo

do_gethinfo


Do gethinfo1

do_gethinfo


Do gethinfo2

do_gethinfo


System call1

system call


Makefiles

makefiles


3244795


3244795


3244795

  • 2

  • 3.1.x MINIX (process manager) first fit: , , .

    • ,

    • best fit: . , .

    • worst fit: . , .


3244795

1


Best worst fit

Best Worst Fit

    • , .


Best fit alloc c

Best-fit Alloc.c


Alloc c

Alloc.c


Alloc c1

Alloc.c


Worst fit alloc c

Worst-fit Alloc.c


Worst fit alloc c1

Worst-fit Alloc.c


Worst fit alloc c2

Worst-fit Alloc.c


3244795

  • 3

  • 1 . , first-fit


3244795

  • :

  • #programB &

  • #programB &

  • #programB &

  • #programA &

  • #programB &

  • programA 2 programB.

  • 1 programB

  • 2 programA

  • programA


First fit

First fit

  • programA 1


3244795

  • (----),

    • , 2 programB,

      • (394496-373504=20992byte)

    • programA

      • (352512-343808=8704byte).


3244795

  • programA 2programB


First fit1

First fit

  • programA.


First fit2

First fit


First fit3

First fit

  • , , 2 ProgramB

  • ProgramA.


Best fit

Best fit

  • programA 2

  • programA.


Best fit1

Best Fit


Best fit2

Best fit

  • , First-Fit, , ProgramA

  • (0 bytes).


Worst fit

Worst fit

  • programA ,


Worst fit1

Worst-fit

  • (----),

    • , 2 programB,

      • (659373056-659352064=20992byte)

    • programA

      • (659316224-659307520=8704byte).


3244795

kill


Worst fit2

Worst fit

  • programA.


Worst fit3

Worst-fit


Worst fit4

Worst fit

  • , , First-Fit, ,

  • .


  • Login