projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add another test that locks & unlocks in FIFO order instead of stack
[pintos-anon]
/
src
/
tests
/
threads
/
priority-preempt.c
diff --git
a/src/tests/threads/priority-preempt.c
b/src/tests/threads/priority-preempt.c
index f6f799c4127957b15d0877f28d9c7275bc843012..70f8acbee8ee67bd14349f73106a10dfbb031565 100644
(file)
--- a/
src/tests/threads/priority-preempt.c
+++ b/
src/tests/threads/priority-preempt.c
@@
-1,4
+1,4
@@
-/*
Problem 1-3: Priority Scheduling tes
ts.
+/*
Ensures that a high-priority thread really preemp
ts.
Based on a test originally submitted for Stanford's CS 140 in
winter 1999 by by Matt Franklin
Based on a test originally submitted for Stanford's CS 140 in
winter 1999 by by Matt Franklin
@@
-23,7
+23,7
@@
test_priority_preempt (void)
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
- thread_create ("high-priority", PRI_DEFAULT
-
1, simple_thread_func, NULL);
+ thread_create ("high-priority", PRI_DEFAULT
+
1, simple_thread_func, NULL);
msg ("The high-priority thread should have already completed.");
}
msg ("The high-priority thread should have already completed.");
}