-
Notifications
You must be signed in to change notification settings - Fork 9
add cs350 fall 2018 midterm #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
777lefty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some missing issues and format issues
|
|
||
| ## Question 2 [3 point(s)] | ||
|
|
||
| Explain why the following implementation of semaphore P is incorrect. Provide an example interaction between two threads that illustrates the problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code snippet for this question seems to be totally missed
| n /= d; | ||
| printf("%d\n", d); | ||
| return 0; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better use table and code block to wrap them
|
|
||
| ## Question 7 [2 point(s)] | ||
|
|
||
| What concurrency problem does this program suffer from? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code snippet provided in the background for all the subproblems of the problem is missed
| ``` | ||
|
|
||
| --- | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question 3 is skipped, but it seems to be feasible because it doesn't contain figure, and we can ask the agents to output table to represent stack
|
|
||
| --- | ||
|
|
||
| ## Question 10 [2 point(s)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Background information for all subproblems in problem 4 is missed
| copy trapframe to stack | ||
| modify trapframe | ||
| enter usermode | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code block better?
| ``` | ||
|
|
||
| --- | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question 5 is skipped, seems to be feasible as well
|
|
||
| --- | ||
|
|
||
| ## Question 15 [3 point(s)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Background information for Question 6 is missed
Description
Add the CS350 Fall 2018 Midterm exam dataset and associated solution file to the course exam benchmark.
Changes
Testing
Prepared the dataset and verified processing by running: python3 courseexam/prepare.py
Checklist