Skip to content

Commit f501f08

Browse files
committed
ej 5 V4
1 parent 4e22c29 commit f501f08

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

V4/OperatingSystem.c

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ void OperatingSystem_Initialize(int daemonsIndex) {
103103

104104
OperatingSystem_PrintStatus(); //V3 Ej 0d
105105

106+
OperatingSystem_InitializePartitionTable(); //V4 Ej 5
107+
106108
// Create all user processes from the information given in the command line
107109
int createdProcesses = OperatingSystem_LongTermScheduler();
108110
//V1 Ej 15

V4/OperatingSystem.h

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// #include "Hooks.h"
66
#include <stdio.h>
77

8+
// Partitions configuration file name definition #define MEMCONFIG "MemConfig"
9+
#define MEMCOBFIG "MemConfig" //V4 ej 5
810

911
#define SUCCESS 1
1012
#define PROGRAMDOESNOTEXIST -1

V4/readme.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ Ej 3:
1212
Ej 4:
1313
En el switch de OperatingSystem_HandleSystemCall se ha añadido un default que enseña el mensaje 141 que se ha pedido
1414
Ademas en ese caso, se ha añadido la llamada al terminateProcess para terminar el proceso
15-
y se imprime el estado
15+
y se imprime el estado
16+
Ej 5:
17+
En OperatingSystem.h se ha añadido definido el nombre del fichero para que compile
18+
en OperatingSystem_Initialize se ha añadido la llamada a OperatingSystem_InitializePartitionTable antes de la llamada al PLP

0 commit comments

Comments
 (0)