Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Fair-Share Scheduling
- System Call
- Process
- STCF
- MLFQ
- DRAM
- virtual memory
- 프로그래밍
- 문법
- Stride scheduling
- PIM
- Process in Memory
- FIFO
- 프로그래밍언어
- computer architercure
- SJF
- 운영체제
- Round robin
- Segmenation
- scheduling
- 스케줄러
- Operating System
- 컴퓨터 구조
- 어셈블리
- 컴퓨터
- C언어
- sceduling
- scheduler
- Computer Architecture
Archives
- Today
- Total
목록컴퓨터 (1)
Nyong!
if 문과 switch 문의 차이(어셈블리 레벨에서)
if, else if를 사용한 문법과 switch문은 결과적으로 같은 역할을 수행할 수 있다. 아래 코드를 확인해보자 //if 문 예시 int main(){ int i; scanf("%d", &i); if (i == 0) printf("input is 0"); else if (i == 1) printf("input is 1"); else if (i == 2) printf("input is 2"); else if (i == 3) printf("input is 3"); else if (i == 4) printf("input is 4"); else if (i == 5) printf("input is 5"); else printf("wrong input") return 0; } //switch 문 예시 int ..
Study/C
2022. 5. 26. 18:24