logo

Crowdly

Browser

Add to Chrome

SISTEMAS OPERATIVOS

Looking for SISTEMAS OPERATIVOS test answers and solutions? Browse our comprehensive collection of verified answers for SISTEMAS OPERATIVOS at moodle.uam.es.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Dado este código:

...

#define FILE "file.txt"

int main(void) {

int file;

if ((file = open(FILE, O_CREATE | O_TRUNC | O_RDWR) == -1) {

// Imprimimos error

...

};

close(file);

...

}

¿Se ha borrado del disco el fichero FILE?

View this question

En una tubería que no tiene procesos lectores asociados, ¿qué ocurre cuando un proceso intenta escribir un mensaje en la tubería?

0%
0%
0%
View this question

¿Qué devuelve la función open() para abrir un fichero?

0%
0%
0%
View this question

Dado este código:

...

#define FILE "file.txt"

int main(void) {

int file;

if ((file = open(FILE, O_CREATE | O_TRUNC | O_RDWR) == -1) {

// Imprimimos error

...

};

close(file);

...

}

¿Se ha borrado del disco el fichero FILE?

0%
0%
0%
0%
View this question

¿Qué hace exactamente la función waitpid()?

0%
0%
0%
0%
View this question

Cuando la llamada a la función fork() devuelve - 1 significa que:

View this question

¿Cuántos procesos padre puede tener otro proceso?

View this question

Si se ejecuta el siguiente código:

...

for (i=0; i < 3; i++) {

fork();

}

exit(EXIT_SUCCESS);

...

¿Cuántos procesos zombies tenemos?

0%
0%
0%
0%
View this question

¿Qué hace exactamente la función wait(NULL)?

0%
0%
0%
View this question

Si se ejecuta el siguiente código:

...

for (i=0; i < 3; i++) {

fork();

}

exit(EXIT_SUCCESS);

...

¿Cuántos hijos se quedan huerfanos?

View this question

Want instant access to all verified answers on moodle.uam.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome