Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
foss-2024-2-final
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
홍 유빈
foss-2024-2-final
Commits
ab9203c5
Commit
ab9203c5
authored
5 months ago
by
홍 유빈
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
a43ffc25
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PROJECT1 : THREADS/2. Alarm Clock.md
+11
-0
11 additions, 0 deletions
PROJECT1 : THREADS/2. Alarm Clock.md
with
11 additions
and
0 deletions
PROJECT1 : THREADS/2. Alarm Clock.md
0 → 100644
+
11
−
0
View file @
ab9203c5
# Alarm Clock
`devices/timer.c`
에 정의된
`timer_sleep()`
을 재구현합니다.
작동하는 구현이 제공되지만 busy waits, 즉 현재 시간을 확인하고 충분한 시간이 지날 때까지
`thread_yield()`
를 호출하는 루프에서 돕니다. busy waits를 피하기 위하여 다시 구현하세요.
`void timer_sleep (int64_t ticks);`
> 호출 스레드의 실행을 최소 x 타이머 틱만큼의 시간이 진행될 때까지 일시 중단합니다. 시스템이 쉬고 있는 상태가 아니면 스레드는 정확히 x 틱 후에 깨어날 필요가 없습니다. 적절한 시간 동안 기다린 후 준비 대기열에 넣기만 하면 됩니다.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment