UMUC Asia - CMSC412 - Operating Systems
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
//** Introductions [#gf04fa65]
//
//- Question
//
//Introduce yourself here by telling us your name, what p...
//
//- Answer
//
//Hello class, my name is Yuji Shimojo and I'm 26. I am f...
//
//Because my company is utilizing Kernel-based Virtual Ma...
//
** Week 1 Discussion - The World of Operating Systems [#w...
- Question
Name (and post here as a reply to this topic) a few opera...
Describe your experience and answer comparative questions...
-- Which one was the oldest?
-- What about the oddest?
-- Which one was more fun?
-- etc.
- Answer
My first operating system using was Windows 2000 on my fa...
I think Mac OS X is a great operating system. Not only it...
The oddest and worst operating system I have used before ...
** Homework 1 [#p94d0753]
- Question
1. Solve Exercise 1.30 from the textbook, page 45. [5 poi...
"Define the essential properties of the following types o...
a. Batch~
b. Interactive~
c. Time sharing~
d. Real time~
e. Network~
f. Parallel~
g. Distributed~
h. Clustered~
i. Handheld"
2. Using the information from module 1, (especially the c...
[3 points = 0.3 * 10]
1. The hardware (the physical devices) is the ________ of...
2. The operating system is a piece of _________ that make...
3. The key word that applies to the operating system from...
4. The key word that applies to the operating system from...
5. There are _________ generations of operating systems.~
6. The hardware technology used for the computers of the ...
7. A ___________ operating system allows users to be awar...
8. A ___________ is a program in execution, usually consi...
9. Modern operating systems allow a process to create (or...
10. A ___________ is a collection of related information,...
You can post only the missing words like this:
1. xxxx~
2. yyyy~
....~
10. zzzz
I would prefer the plain text format for your answers, in...
- Answer
1. body / soul~
2. software~
3. convenience~
4. efficiency~
5. four~
6. integrated circuits~
7. network~
8. process~
9. spawn~
10. file
** Week 2 Discussion - Processes vs Threads [#f491190a]
- Question
Find common features and differences between processes an...
Then focus (and post here) on one common feature and/or d...
Do a little research and try to add a few things that are...
Please avoid repetition of the same list of similarities ...
I would suggest to pick one similarity / difference and e...
Examples always help understanding the topic.
- Answer
A process is an executable unit of a program, which inclu...
For example, .exe file is a process on Windows. If you ru...
** Homework 2 [#e2a5fc5b]
- Question
A.
Implement Program 2.8 from Module 2 Commentary
(and familiarize with C programming on nova in the process)
Create the "w2" directory in you nova home directory (mkd...
Save the C source code on nova, in your "w2" directory, i...
gcc w28.c -o w28
and thus we obtain the executable "w28". You can execute ...
./w28
Run the program several times and notice the behaviour of...
Post the file "w28.c" and the executable "w28" in the Ass...
B. Using the information from module 2, (especially the c...
[4 points = 0.4 * 10]
1. The only way a process can come into existence is by b...
2. In UNIX the first process is called the ________ proce...
3. The fork() function in the parent returns a __________...
4. The fork() function returns ______ if there is an erro...
5. The CPU scheduling policy used in UNIX is called _____...
6. A _________ of execution can be seen as a sort of smal...
7. It is in the _________ method that we provide some wor...
8. Like processes, threads can be put to sleep (using the...
9. The operating system component in charge of applying C...
10. There are two main types of scheduling policies used ...
- Answer for Question A
-- w28.c
#include <stdio.h>
#include <unistd.h>
int main()
{
int pid;
pid = fork();
switch(pid)
{
case -1:
/* an error occurred */
printf("Fork error");
break;
case 0:
/* this code is executed by the child process */
printf("I am the child process\n");
printf("My pid is %d\n", getpid());
printf("My parent's pid is %d\n", getppid());
printf("I have no child\n");
break;
default:
/* this code is executed by the parent process */
printf("I am the parent process\n");
printf("My pid is %d\n", getpid());
printf("My parent's pid is %d\n", getppid());
printf("My child has the pid %d\n", pid);
}
}
-- Execution Result
nova2> ./w28
I am the parent process
My pid is 21332
My parent's pid is 21262
My child has the pid 21333
I am the child process
My pid is 21333
My parent's pid is 21332
I have no child
I executed the executable "w28" created from "w28.c." I c...
- Answer for Question B
1. parent~
2. init~
3. zero integer, non-zero integers~
4. -1~
5. time sharing~
6. thread~
7. start~
8. sleep, wait~
9. scheduler, the process scheduler~
10. pre-emptive, non-pre-emptive
** Week 3 Discussion - Scheduling Algorithms [#ve09de83]
- Question
Pick one scheduling algorithm and give us your opinion ab...
The post should reflect your own understanding, use your ...
If you pick an algorithm that was already chosen (and pos...
OR (optional): Suggest a new scheduling algorithm. Show i...
- Answer
The round-robin (RR) scheduling algorithm is designed esp...
sharing systems. It allows the system to switch between p...
The advantage of this algorithm is not to cause resource ...
** Homework 3 [#m858e808]
- Question
Write a C program ("procs.c") that creates three processe...
The first child should do the following:
-- display "First child is born, my pid is ..."
-- display 100 times the message "First child executes it...
-- display "First child dies quietly."
The second child should do the following:
-- display "Second child is born, my pid is ..."
- display 100 times the message "Second child executes it...
- display "Second child dies quietly."
The parent process should do the following:
-- display "Parent process is born, my pid is ..."
-- create the first child
-- create the second child
-- wait for both children to complete their execution
-- display "Parent process dies quietly."
Compile the program on nova using gcc and name the execut...
A possible output of this program is:
nova> ./procs.exe
Parent process is born, my pid is 7847
First child is born, my pid is 7848
First child executes iteration: 1
First child executes iteration: 2
First child executes iteration: 3
First child executes iteration: 4
First child executes iteration: 5
Second child is born, my pid is 7849
Second child executes iteration 1
Second child executes iteration 2
Second child executes iteration 3
First child executes iteration: 6
Second child executes iteration 4
Second child executes iteration 5
Second child executes iteration 6
First child executes iteration: 7
Second child executes iteration 7
Second child executes iteration 8
...
Second child executes iteration 100
Second child dies quietly.
First child executes iteration: 8
...
First child executes iteration: 100
First child dies quietly.
Parent process dies quietly.
- Answer
-- proc.c
#include <stdio.h>
#include <unistd.h>
#include <stdbool.h>
int main() {
int i, j, k;
int state = 0;
bool isParentSpawned = false;
for (i = 0; i < 2; i++) {
if (fork() == 0) {
/* this code is executed by the child proces...
if (i == 0) {
printf ("First child is born, my pid is ...
for (j = 1; j <= 100; j++) {
printf ("First child executes iterat...
}
printf ("First child dies quietly.\n");
_exit(0);
} else if (i == 1) {
printf ("Second child is born, my pid is...
for (k = 1; k <= 100; k++) {
printf ("Second child executes itera...
}
printf ("Second child dies quietly.\n");
_exit(0);
}
break;
} else {
/* this code is executed by the parent proce...
if ( isParentSpawned == false) {
printf ("Parent process is born, my pid ...
isParentSpawned = true;
}
int w_pid;
w_pid = wait(0);
if (w_pid > 0) {
state++;
}
if (state == 2) {
printf ("Parent process dies quietly.\n");
exit(0);
}
}
}
return (0);
}
-- Execution Result
nova2> gcc procs.c -o procs.exe
nova2> ./procs.exe
Parent process is born, my pid is 2032
First child is born, my pid is 2033
First child executes iteration: 1
First child executes iteration: 2
First child executes iteration: 3
First child executes iteration: 4
First child executes iteration: 5
First child executes iteration: 6
First child executes iteration: 7
First child executes iteration: 8
First child executes iteration: 9
First child executes iteration: 10
First child executes iteration: 11
First child executes iteration: 12
First child executes iteration: 13
First child executes iteration: 14
First child executes iteration: 15
First child executes iteration: 16
First child executes iteration: 17
First child executes iteration: 18
First child executes iteration: 19
First child executes iteration: 20
First child executes iteration: 21
First child executes iteration: 22
First child executes iteration: 23
First child executes iteration: 24
First child executes iteration: 25
First child executes iteration: 26
First child executes iteration: 27
First child executes iteration: 28
First child executes iteration: 29
First child executes iteration: 30
First child executes iteration: 31
First child executes iteration: 32
First child executes iteration: 33
First child executes iteration: 34
First child executes iteration: 35
First child executes iteration: 36
First child executes iteration: 37
First child executes iteration: 38
First child executes iteration: 39
First child executes iteration: 40
First child executes iteration: 41
First child executes iteration: 42
First child executes iteration: 43
First child executes iteration: 44
First child executes iteration: 45
First child executes iteration: 46
First child executes iteration: 47
First child executes iteration: 48
First child executes iteration: 49
First child executes iteration: 50
First child executes iteration: 51
First child executes iteration: 52
First child executes iteration: 53
First child executes iteration: 54
First child executes iteration: 55
First child executes iteration: 56
First child executes iteration: 57
First child executes iteration: 58
First child executes iteration: 59
First child executes iteration: 60
First child executes iteration: 61
First child executes iteration: 62
First child executes iteration: 63
First child executes iteration: 64
First child executes iteration: 65
First child executes iteration: 66
First child executes iteration: 67
First child executes iteration: 68
First child executes iteration: 69
First child executes iteration: 70
First child executes iteration: 71
First child executes iteration: 72
First child executes iteration: 73
First child executes iteration: 74
First child executes iteration: 75
First child executes iteration: 76
First child executes iteration: 77
First child executes iteration: 78
First child executes iteration: 79
First child executes iteration: 80
First child executes iteration: 81
First child executes iteration: 82
First child executes iteration: 83
First child executes iteration: 84
First child executes iteration: 85
First child executes iteration: 86
First child executes iteration: 87
First child executes iteration: 88
First child executes iteration: 89
First child executes iteration: 90
First child executes iteration: 91
First child executes iteration: 92
First child executes iteration: 93
First child executes iteration: 94
First child executes iteration: 95
First child executes iteration: 96
First child executes iteration: 97
First child executes iteration: 98
First child executes iteration: 99
First child executes iteration: 100
First child dies quietly.
Second child is born, my pid is 2034
Second child executes iteration: 1
Second child executes iteration: 2
Second child executes iteration: 3
Second child executes iteration: 4
Second child executes iteration: 5
Second child executes iteration: 6
Second child executes iteration: 7
Second child executes iteration: 8
Second child executes iteration: 9
Second child executes iteration: 10
Second child executes iteration: 11
Second child executes iteration: 12
Second child executes iteration: 13
Second child executes iteration: 14
Second child executes iteration: 15
Second child executes iteration: 16
Second child executes iteration: 17
Second child executes iteration: 18
Second child executes iteration: 19
Second child executes iteration: 20
Second child executes iteration: 21
Second child executes iteration: 22
Second child executes iteration: 23
Second child executes iteration: 24
Second child executes iteration: 25
Second child executes iteration: 26
Second child executes iteration: 27
Second child executes iteration: 28
Second child executes iteration: 29
Second child executes iteration: 30
Second child executes iteration: 31
Second child executes iteration: 32
Second child executes iteration: 33
Second child executes iteration: 34
Second child executes iteration: 35
Second child executes iteration: 36
Second child executes iteration: 37
Second child executes iteration: 38
Second child executes iteration: 39
Second child executes iteration: 40
Second child executes iteration: 41
Second child executes iteration: 42
Second child executes iteration: 43
Second child executes iteration: 44
Second child executes iteration: 45
Second child executes iteration: 46
Second child executes iteration: 47
Second child executes iteration: 48
Second child executes iteration: 49
Second child executes iteration: 50
Second child executes iteration: 51
Second child executes iteration: 52
Second child executes iteration: 53
Second child executes iteration: 54
Second child executes iteration: 55
Second child executes iteration: 56
Second child executes iteration: 57
Second child executes iteration: 58
Second child executes iteration: 59
Second child executes iteration: 60
Second child executes iteration: 61
Second child executes iteration: 62
Second child executes iteration: 63
Second child executes iteration: 64
Second child executes iteration: 65
Second child executes iteration: 66
Second child executes iteration: 67
Second child executes iteration: 68
Second child executes iteration: 69
Second child executes iteration: 70
Second child executes iteration: 71
Second child executes iteration: 72
Second child executes iteration: 73
Second child executes iteration: 74
Second child executes iteration: 75
Second child executes iteration: 76
Second child executes iteration: 77
Second child executes iteration: 78
Second child executes iteration: 79
Second child executes iteration: 80
Second child executes iteration: 81
Second child executes iteration: 82
Second child executes iteration: 83
Second child executes iteration: 84
Second child executes iteration: 85
Second child executes iteration: 86
Second child executes iteration: 87
Second child executes iteration: 88
Second child executes iteration: 89
Second child executes iteration: 90
Second child executes iteration: 91
Second child executes iteration: 92
Second child executes iteration: 93
Second child executes iteration: 94
Second child executes iteration: 95
Second child executes iteration: 96
Second child executes iteration: 97
Second child executes iteration: 98
Second child executes iteration: 99
Second child executes iteration: 100
Second child dies quietly.
Parent process dies quietly.
** Week 4 Discussion - Memory Management [#xc7a1bb0]
- Question
Design a memory management scheme for a 64 bit architectu...
using various types of paging and/or segmentation availab...
Then highlight its advantages and disadvantages.
Your scheme must be different from your colleagues' schem...
- Answer
#ref(CMSC412_hw4solved.pdf)
** Week 5 Discussion - File Systems [#l766ecff]
- Question
Imagine a new file system structure, describe it (and how...
Shortly describe how you would implement it.
Hint: consider various data structures that you are famil...
- GitHub Repository: https://github.com/yujishimojo/CMSC4...
-- FileSystemTest.java
** Week 6 Discussion - Disk Scheduling [#o3aa1387]
- Question
Pick one disk scheduling algorithm and give us your opini...
The post should reflect your own understanding, use your ...
If you pick an algorithm that was already chosen (and pos...
OR (optional): Suggest a new disk scheduling algorithm. S...
- Answer
I think LOOK is the most efficient among disk scheduling ...
However, the total distance by using LOOK changes a lot d...
Therefore, I propose a variant of SSTF scheduling algorit...
** Homework 6 [#defb5cd6]
- Question
Suppose that a disk drive has 5000 cylinders, numbered 0 ...
170, 137, 910, 1707, 848, 1309, 432, 1021, 25, 1720, 135.
Starting from the current head position, what is the tota...
1. FCFS~
2. SSTF~
3. SCAN~
4. C-SCAN~
5. LOOK~
6. C-LOOK~
Please provide detailed calculations, not just the final ...
PS: for some algorithms (SCAN, LOOK) there are two soluti...
- Answer
#ref(CMSC412_Homework6.pdf)
** Week 7 Discussion - Security [#h6001b58]
- Question
1. Encrypt the phrase "My name is _full_name_" using Caes...
2. Shortly describe the security problems that you encoun...
- Answer
1. Encrypt the phrase "My name is _full_name_" using Caes...
I encrypted "My name is Yuji Shimojo" by applying K = 8 a...
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
My name was turned into "Ug vium qa Gcrq Apquwrw."
2. Shortly describe the security problems that you encoun...
Because the number of letters is same as before encryptio...
Also, the same set of rules is applied to all the letters...
** Week 8 Discussion - Lessons Learned [#c7fa65f8]
- Question
What topics in this course did you find the most interest...
Should you have a chance to participate in the design and...
- Answer
#ref(CMSC412_FinalProject.pdf)
- GitHub Repository: https://github.com/yujishimojo/CMSC4...
-- DemandPagingSimulator.java
終了行:
#contents
//** Introductions [#gf04fa65]
//
//- Question
//
//Introduce yourself here by telling us your name, what p...
//
//- Answer
//
//Hello class, my name is Yuji Shimojo and I'm 26. I am f...
//
//Because my company is utilizing Kernel-based Virtual Ma...
//
** Week 1 Discussion - The World of Operating Systems [#w...
- Question
Name (and post here as a reply to this topic) a few opera...
Describe your experience and answer comparative questions...
-- Which one was the oldest?
-- What about the oddest?
-- Which one was more fun?
-- etc.
- Answer
My first operating system using was Windows 2000 on my fa...
I think Mac OS X is a great operating system. Not only it...
The oddest and worst operating system I have used before ...
** Homework 1 [#p94d0753]
- Question
1. Solve Exercise 1.30 from the textbook, page 45. [5 poi...
"Define the essential properties of the following types o...
a. Batch~
b. Interactive~
c. Time sharing~
d. Real time~
e. Network~
f. Parallel~
g. Distributed~
h. Clustered~
i. Handheld"
2. Using the information from module 1, (especially the c...
[3 points = 0.3 * 10]
1. The hardware (the physical devices) is the ________ of...
2. The operating system is a piece of _________ that make...
3. The key word that applies to the operating system from...
4. The key word that applies to the operating system from...
5. There are _________ generations of operating systems.~
6. The hardware technology used for the computers of the ...
7. A ___________ operating system allows users to be awar...
8. A ___________ is a program in execution, usually consi...
9. Modern operating systems allow a process to create (or...
10. A ___________ is a collection of related information,...
You can post only the missing words like this:
1. xxxx~
2. yyyy~
....~
10. zzzz
I would prefer the plain text format for your answers, in...
- Answer
1. body / soul~
2. software~
3. convenience~
4. efficiency~
5. four~
6. integrated circuits~
7. network~
8. process~
9. spawn~
10. file
** Week 2 Discussion - Processes vs Threads [#f491190a]
- Question
Find common features and differences between processes an...
Then focus (and post here) on one common feature and/or d...
Do a little research and try to add a few things that are...
Please avoid repetition of the same list of similarities ...
I would suggest to pick one similarity / difference and e...
Examples always help understanding the topic.
- Answer
A process is an executable unit of a program, which inclu...
For example, .exe file is a process on Windows. If you ru...
** Homework 2 [#e2a5fc5b]
- Question
A.
Implement Program 2.8 from Module 2 Commentary
(and familiarize with C programming on nova in the process)
Create the "w2" directory in you nova home directory (mkd...
Save the C source code on nova, in your "w2" directory, i...
gcc w28.c -o w28
and thus we obtain the executable "w28". You can execute ...
./w28
Run the program several times and notice the behaviour of...
Post the file "w28.c" and the executable "w28" in the Ass...
B. Using the information from module 2, (especially the c...
[4 points = 0.4 * 10]
1. The only way a process can come into existence is by b...
2. In UNIX the first process is called the ________ proce...
3. The fork() function in the parent returns a __________...
4. The fork() function returns ______ if there is an erro...
5. The CPU scheduling policy used in UNIX is called _____...
6. A _________ of execution can be seen as a sort of smal...
7. It is in the _________ method that we provide some wor...
8. Like processes, threads can be put to sleep (using the...
9. The operating system component in charge of applying C...
10. There are two main types of scheduling policies used ...
- Answer for Question A
-- w28.c
#include <stdio.h>
#include <unistd.h>
int main()
{
int pid;
pid = fork();
switch(pid)
{
case -1:
/* an error occurred */
printf("Fork error");
break;
case 0:
/* this code is executed by the child process */
printf("I am the child process\n");
printf("My pid is %d\n", getpid());
printf("My parent's pid is %d\n", getppid());
printf("I have no child\n");
break;
default:
/* this code is executed by the parent process */
printf("I am the parent process\n");
printf("My pid is %d\n", getpid());
printf("My parent's pid is %d\n", getppid());
printf("My child has the pid %d\n", pid);
}
}
-- Execution Result
nova2> ./w28
I am the parent process
My pid is 21332
My parent's pid is 21262
My child has the pid 21333
I am the child process
My pid is 21333
My parent's pid is 21332
I have no child
I executed the executable "w28" created from "w28.c." I c...
- Answer for Question B
1. parent~
2. init~
3. zero integer, non-zero integers~
4. -1~
5. time sharing~
6. thread~
7. start~
8. sleep, wait~
9. scheduler, the process scheduler~
10. pre-emptive, non-pre-emptive
** Week 3 Discussion - Scheduling Algorithms [#ve09de83]
- Question
Pick one scheduling algorithm and give us your opinion ab...
The post should reflect your own understanding, use your ...
If you pick an algorithm that was already chosen (and pos...
OR (optional): Suggest a new scheduling algorithm. Show i...
- Answer
The round-robin (RR) scheduling algorithm is designed esp...
sharing systems. It allows the system to switch between p...
The advantage of this algorithm is not to cause resource ...
** Homework 3 [#m858e808]
- Question
Write a C program ("procs.c") that creates three processe...
The first child should do the following:
-- display "First child is born, my pid is ..."
-- display 100 times the message "First child executes it...
-- display "First child dies quietly."
The second child should do the following:
-- display "Second child is born, my pid is ..."
- display 100 times the message "Second child executes it...
- display "Second child dies quietly."
The parent process should do the following:
-- display "Parent process is born, my pid is ..."
-- create the first child
-- create the second child
-- wait for both children to complete their execution
-- display "Parent process dies quietly."
Compile the program on nova using gcc and name the execut...
A possible output of this program is:
nova> ./procs.exe
Parent process is born, my pid is 7847
First child is born, my pid is 7848
First child executes iteration: 1
First child executes iteration: 2
First child executes iteration: 3
First child executes iteration: 4
First child executes iteration: 5
Second child is born, my pid is 7849
Second child executes iteration 1
Second child executes iteration 2
Second child executes iteration 3
First child executes iteration: 6
Second child executes iteration 4
Second child executes iteration 5
Second child executes iteration 6
First child executes iteration: 7
Second child executes iteration 7
Second child executes iteration 8
...
Second child executes iteration 100
Second child dies quietly.
First child executes iteration: 8
...
First child executes iteration: 100
First child dies quietly.
Parent process dies quietly.
- Answer
-- proc.c
#include <stdio.h>
#include <unistd.h>
#include <stdbool.h>
int main() {
int i, j, k;
int state = 0;
bool isParentSpawned = false;
for (i = 0; i < 2; i++) {
if (fork() == 0) {
/* this code is executed by the child proces...
if (i == 0) {
printf ("First child is born, my pid is ...
for (j = 1; j <= 100; j++) {
printf ("First child executes iterat...
}
printf ("First child dies quietly.\n");
_exit(0);
} else if (i == 1) {
printf ("Second child is born, my pid is...
for (k = 1; k <= 100; k++) {
printf ("Second child executes itera...
}
printf ("Second child dies quietly.\n");
_exit(0);
}
break;
} else {
/* this code is executed by the parent proce...
if ( isParentSpawned == false) {
printf ("Parent process is born, my pid ...
isParentSpawned = true;
}
int w_pid;
w_pid = wait(0);
if (w_pid > 0) {
state++;
}
if (state == 2) {
printf ("Parent process dies quietly.\n");
exit(0);
}
}
}
return (0);
}
-- Execution Result
nova2> gcc procs.c -o procs.exe
nova2> ./procs.exe
Parent process is born, my pid is 2032
First child is born, my pid is 2033
First child executes iteration: 1
First child executes iteration: 2
First child executes iteration: 3
First child executes iteration: 4
First child executes iteration: 5
First child executes iteration: 6
First child executes iteration: 7
First child executes iteration: 8
First child executes iteration: 9
First child executes iteration: 10
First child executes iteration: 11
First child executes iteration: 12
First child executes iteration: 13
First child executes iteration: 14
First child executes iteration: 15
First child executes iteration: 16
First child executes iteration: 17
First child executes iteration: 18
First child executes iteration: 19
First child executes iteration: 20
First child executes iteration: 21
First child executes iteration: 22
First child executes iteration: 23
First child executes iteration: 24
First child executes iteration: 25
First child executes iteration: 26
First child executes iteration: 27
First child executes iteration: 28
First child executes iteration: 29
First child executes iteration: 30
First child executes iteration: 31
First child executes iteration: 32
First child executes iteration: 33
First child executes iteration: 34
First child executes iteration: 35
First child executes iteration: 36
First child executes iteration: 37
First child executes iteration: 38
First child executes iteration: 39
First child executes iteration: 40
First child executes iteration: 41
First child executes iteration: 42
First child executes iteration: 43
First child executes iteration: 44
First child executes iteration: 45
First child executes iteration: 46
First child executes iteration: 47
First child executes iteration: 48
First child executes iteration: 49
First child executes iteration: 50
First child executes iteration: 51
First child executes iteration: 52
First child executes iteration: 53
First child executes iteration: 54
First child executes iteration: 55
First child executes iteration: 56
First child executes iteration: 57
First child executes iteration: 58
First child executes iteration: 59
First child executes iteration: 60
First child executes iteration: 61
First child executes iteration: 62
First child executes iteration: 63
First child executes iteration: 64
First child executes iteration: 65
First child executes iteration: 66
First child executes iteration: 67
First child executes iteration: 68
First child executes iteration: 69
First child executes iteration: 70
First child executes iteration: 71
First child executes iteration: 72
First child executes iteration: 73
First child executes iteration: 74
First child executes iteration: 75
First child executes iteration: 76
First child executes iteration: 77
First child executes iteration: 78
First child executes iteration: 79
First child executes iteration: 80
First child executes iteration: 81
First child executes iteration: 82
First child executes iteration: 83
First child executes iteration: 84
First child executes iteration: 85
First child executes iteration: 86
First child executes iteration: 87
First child executes iteration: 88
First child executes iteration: 89
First child executes iteration: 90
First child executes iteration: 91
First child executes iteration: 92
First child executes iteration: 93
First child executes iteration: 94
First child executes iteration: 95
First child executes iteration: 96
First child executes iteration: 97
First child executes iteration: 98
First child executes iteration: 99
First child executes iteration: 100
First child dies quietly.
Second child is born, my pid is 2034
Second child executes iteration: 1
Second child executes iteration: 2
Second child executes iteration: 3
Second child executes iteration: 4
Second child executes iteration: 5
Second child executes iteration: 6
Second child executes iteration: 7
Second child executes iteration: 8
Second child executes iteration: 9
Second child executes iteration: 10
Second child executes iteration: 11
Second child executes iteration: 12
Second child executes iteration: 13
Second child executes iteration: 14
Second child executes iteration: 15
Second child executes iteration: 16
Second child executes iteration: 17
Second child executes iteration: 18
Second child executes iteration: 19
Second child executes iteration: 20
Second child executes iteration: 21
Second child executes iteration: 22
Second child executes iteration: 23
Second child executes iteration: 24
Second child executes iteration: 25
Second child executes iteration: 26
Second child executes iteration: 27
Second child executes iteration: 28
Second child executes iteration: 29
Second child executes iteration: 30
Second child executes iteration: 31
Second child executes iteration: 32
Second child executes iteration: 33
Second child executes iteration: 34
Second child executes iteration: 35
Second child executes iteration: 36
Second child executes iteration: 37
Second child executes iteration: 38
Second child executes iteration: 39
Second child executes iteration: 40
Second child executes iteration: 41
Second child executes iteration: 42
Second child executes iteration: 43
Second child executes iteration: 44
Second child executes iteration: 45
Second child executes iteration: 46
Second child executes iteration: 47
Second child executes iteration: 48
Second child executes iteration: 49
Second child executes iteration: 50
Second child executes iteration: 51
Second child executes iteration: 52
Second child executes iteration: 53
Second child executes iteration: 54
Second child executes iteration: 55
Second child executes iteration: 56
Second child executes iteration: 57
Second child executes iteration: 58
Second child executes iteration: 59
Second child executes iteration: 60
Second child executes iteration: 61
Second child executes iteration: 62
Second child executes iteration: 63
Second child executes iteration: 64
Second child executes iteration: 65
Second child executes iteration: 66
Second child executes iteration: 67
Second child executes iteration: 68
Second child executes iteration: 69
Second child executes iteration: 70
Second child executes iteration: 71
Second child executes iteration: 72
Second child executes iteration: 73
Second child executes iteration: 74
Second child executes iteration: 75
Second child executes iteration: 76
Second child executes iteration: 77
Second child executes iteration: 78
Second child executes iteration: 79
Second child executes iteration: 80
Second child executes iteration: 81
Second child executes iteration: 82
Second child executes iteration: 83
Second child executes iteration: 84
Second child executes iteration: 85
Second child executes iteration: 86
Second child executes iteration: 87
Second child executes iteration: 88
Second child executes iteration: 89
Second child executes iteration: 90
Second child executes iteration: 91
Second child executes iteration: 92
Second child executes iteration: 93
Second child executes iteration: 94
Second child executes iteration: 95
Second child executes iteration: 96
Second child executes iteration: 97
Second child executes iteration: 98
Second child executes iteration: 99
Second child executes iteration: 100
Second child dies quietly.
Parent process dies quietly.
** Week 4 Discussion - Memory Management [#xc7a1bb0]
- Question
Design a memory management scheme for a 64 bit architectu...
using various types of paging and/or segmentation availab...
Then highlight its advantages and disadvantages.
Your scheme must be different from your colleagues' schem...
- Answer
#ref(CMSC412_hw4solved.pdf)
** Week 5 Discussion - File Systems [#l766ecff]
- Question
Imagine a new file system structure, describe it (and how...
Shortly describe how you would implement it.
Hint: consider various data structures that you are famil...
- GitHub Repository: https://github.com/yujishimojo/CMSC4...
-- FileSystemTest.java
** Week 6 Discussion - Disk Scheduling [#o3aa1387]
- Question
Pick one disk scheduling algorithm and give us your opini...
The post should reflect your own understanding, use your ...
If you pick an algorithm that was already chosen (and pos...
OR (optional): Suggest a new disk scheduling algorithm. S...
- Answer
I think LOOK is the most efficient among disk scheduling ...
However, the total distance by using LOOK changes a lot d...
Therefore, I propose a variant of SSTF scheduling algorit...
** Homework 6 [#defb5cd6]
- Question
Suppose that a disk drive has 5000 cylinders, numbered 0 ...
170, 137, 910, 1707, 848, 1309, 432, 1021, 25, 1720, 135.
Starting from the current head position, what is the tota...
1. FCFS~
2. SSTF~
3. SCAN~
4. C-SCAN~
5. LOOK~
6. C-LOOK~
Please provide detailed calculations, not just the final ...
PS: for some algorithms (SCAN, LOOK) there are two soluti...
- Answer
#ref(CMSC412_Homework6.pdf)
** Week 7 Discussion - Security [#h6001b58]
- Question
1. Encrypt the phrase "My name is _full_name_" using Caes...
2. Shortly describe the security problems that you encoun...
- Answer
1. Encrypt the phrase "My name is _full_name_" using Caes...
I encrypted "My name is Yuji Shimojo" by applying K = 8 a...
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
My name was turned into "Ug vium qa Gcrq Apquwrw."
2. Shortly describe the security problems that you encoun...
Because the number of letters is same as before encryptio...
Also, the same set of rules is applied to all the letters...
** Week 8 Discussion - Lessons Learned [#c7fa65f8]
- Question
What topics in this course did you find the most interest...
Should you have a chance to participate in the design and...
- Answer
#ref(CMSC412_FinalProject.pdf)
- GitHub Repository: https://github.com/yujishimojo/CMSC4...
-- DemandPagingSimulator.java
ページ名: