-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReport
More file actions
84 lines (61 loc) · 1.92 KB
/
Report
File metadata and controls
84 lines (61 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Assignment7
17.2
shell/xsh_udpcomm.c send udp packets
17.3
include/arp.h store time in arp entry
net/arp.c
net/net.c kick out if entry is expired
shell/xsh_arp.c
Assignment6
Modified files:
shell/xsh_free.c 9.1
print free memory block
Assignment_6.txt 9.4
system/userret.c 9.7
print stack that process used when it exit
===============
Assignment5
Modified files:
apps/future_prod.c
apps/future_cons.c
include/future.h
shell/xsh_prodcons.c
system/future_alloc.c
system/future_get.c
system/future_free.c
system/future_set.c
implemented queue struct and 2 more flags for future
===============
Assignment4
Modified files:
apps/future_prod.c
apps/future_cons.c
include/future.h
shell/xsh_prodcons.c
system/future_alloc.c
system/future_get.c
system/future_free.c
system/future_set.c
===============
Assignment3:
Modified files:
shell/xsh_prodcons.c
include/prodcons.h
apps/producer.c
apps/consumer.c
Questions:
1.Semaphore has 2 status, using(1) and free(0). Wait() function will block the current process and wait to the signal becomes to free. Signal() function will change the current status to free. So that, in this assignment, the main() function set the signal consumed to using(1) and produced to free(0) at begining. For next step, producer generate a number n and fire a signal to consumer, consumer will consume the number and send a signal to release the producer process.
2.No.
===============
Assignment2:
Modified files:
shell/xsh_reset.c Add reset command to shell
compile/Makefile In order to compile .c files in apps/
shell/xsh_prodcons.c Assignment2
shell/shell.c
include/shprototype.h
apps/comsumer.c
apps/producer.c
Questions:
1. No, I don't think so. Producer generate number and this number will be assigned to global variable n, and Consumer read the global variable n.
2. No. Producer and Consumer are not concurrent processes on my board.