As per spec, we need to add an implementation of task 0 to the group repo.
Note: opting for separate struct, instead of modifying existing struct thread because:
Better code separation.
More memory efficient.
The new structs themselves are slightly bigger.
But the alternative makes ALL struct thread slightly bigger, which there are many more of than sleeping threads.
As per spec, we need to add an implementation of task 0 to the group repo.
**Note:** opting for separate struct, instead of modifying existing `struct thread` because:
1. Better code separation.
2. More memory efficient.
- The new structs themselves are slightly bigger.
- But the alternative makes ALL `struct thread` slightly bigger, which there are many more of than sleeping threads.
added 1 commit
<ul><li>ec71218f - Do not use malloc for timer_sleep</li></ul>
[Compare with previous version](/lab2425_autumn/pintos_22/-/merge_requests/1/diffs?diff_id=135557&start_sha=f318e0133ae4476d9e76e497cfa5228452c6cc55)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
As per spec, we need to add an implementation of task 0 to the group repo.
Note: opting for separate struct, instead of modifying existing
struct threadbecause:struct threadslightly bigger, which there are many more of than sleeping threads.added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
changed the description
added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
added 1 commit
f5d130f8- Implement non-busy timer_sleep (task 0)Compare with previous version
approved this merge request
mentioned in commit
1be1350941