SlideShare a Scribd company logo
1 of 13
Download to read offline
CPU의 INTERRUPT CYCLE
CSW W3 이채은
인터럽트? (Interrupt)
프로그램 실행 중에 CPU의 현재 처리 순서를 중단시키고,
다른 동작을 수행하도록 요구하는 시스템 동작
외부로부터 인터럽트 요구가 들어온다?
CPU는 하던 일을 중단하고, 요구된 인터럽트를 위한 프로그램을 실행합니다.
실생활에서의 인터럽트
온라인 강의 기간… 선생님의 요구에 따라 ZOOM에 접속해야 한다!
점심을 먹으며
넷플릭스를 보고 있는 나
소프트웨어 공학 상담
누구누구 들어오세요 ^^
일시정지!
ZOOM 접속해서
상담하기
끝나면 다시 재생 ^^
간단하게 말하면
인터럽트가 들어왔다?
어떤 장치가 인터럽트를 요구했는지 확인
해당 ISR 호출
서비스가 종료되면 중단되었던 원래 프로그램 실행
*ISR? Interrupt Service Routine

인터럽트를 수행하기 위해
수행되는 프로그램 루틴
세부적으로 알아볼까요?
다음에 실행할 명령어 주소(PC의 내용)를 스택에 저장
ISR 호출하기 위해 그 루틴의 시작 주소를 PC에 적재
현재의 명령어 실행 종료 후 ISR 호출
스택에 저장해 뒀던 명령어 주소를 PC에 적재
…
*PC? Program Counter
CPU의 레지스터 중 하나

다음 명령어의 주소를 가지고 있음
실생활에 적용하기
아까와 같은 상황입니다!
점심을 먹으며
넷플릭스를 보고 있는 나
TO-DO LIST
인덱스 해야 할 일
33 굿 플레이스 시즌 2 3화 17:38
34 굿 플레이스 시즌 2 3화 17:39
35 굿 플레이스 시즌 2 3화 17:40
… 231 소프트웨어 공학 ZOOM 접속
232 소프트웨어 공학 ZOOM 상담
233 소프트웨어 공학 ZOOM 종료
다음에 할 일
포스트잇
38478*#&$(*#&(
8374
@#$37892*#&
34현재 실행 중
실생활에 적용하기
아까와 같은 상황입니다!
TO-DO LIST
인덱스 해야 할 일
33 굿 플레이스 시즌 2 3화 17:38
34 굿 플레이스 시즌 2 3화 17:39
35 굿 플레이스 시즌 2 3화 17:40
… 231 소프트웨어 공학 ZOOM 접속
232 소프트웨어 공학 ZOOM 상담
233 소프트웨어 공학 ZOOM 종료
다음에 할 일
포스트잇
38478*#&$(*#&(
8374
@#$37892*#&
231현재 실행 중소프트웨어 공학 상담
누구누구 들어오세요 ^^
인터럽트 끝나고
실행할 거: 34번
상담 시작!
실생활에 적용하기
아까와 같은 상황입니다!
TO-DO LIST
인덱스 해야 할 일
33 굿 플레이스 시즌 2 3화 17:38
34 굿 플레이스 시즌 2 3화 17:39
35 굿 플레이스 시즌 2 3화 17:40
… 231 소프트웨어 공학 ZOOM 접속
232 소프트웨어 공학 ZOOM 상담
233 소프트웨어 공학 ZOOM 종료
다음에 할 일
포스트잇
38478*#&$(*#&(
8374
@#$37892*#&
232
현재 실행 중
인터럽트 끝나고
실행할 거: 34번
실생활에 적용하기
아까와 같은 상황입니다!
TO-DO LIST
인덱스 해야 할 일
33 굿 플레이스 시즌 2 3화 17:38
34 굿 플레이스 시즌 2 3화 17:39
35 굿 플레이스 시즌 2 3화 17:40
… 231 소프트웨어 공학 ZOOM 접속
232 소프트웨어 공학 ZOOM 상담
233 소프트웨어 공학 ZOOM 종료
다음에 할 일
포스트잇
38478*#&$(*#&(
8374
@#$37892*#&
34
현재 실행 중
상담 끝!
실생활에 적용하기
아까와 같은 상황입니다!
TO-DO LIST
인덱스 해야 할 일
33 굿 플레이스 시즌 2 3화 17:38
34 굿 플레이스 시즌 2 3화 17:39
35 굿 플레이스 시즌 2 3화 17:40
… 231 소프트웨어 공학 ZOOM 접속
232 소프트웨어 공학 ZOOM 상담
233 소프트웨어 공학 ZOOM 종료
다음에 할 일
포스트잇
38478*#&$(*#&(
8374
@#$37892*#&
35
현재 실행 중
다시 재생 ^^
다중 인터럽트
ISR 처리 중 다른 인터럽트가 발생한 상황
처리 방법
1. 시스템 운영상 중요한 프로그램, 도중에 중단할 수 없는 입출력 동작 등일 경우
새로운 인터럽트 요구를 수행하지 않음!
Interrupt flag 사용: 0(인터럽트 처리 불가), 1(가능)
우선 순위로 판단하여 인터럽트 처리!
2. 이전 상황 이외의 경우

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

CPU의 인터럽트 사이클

  • 2. 인터럽트? (Interrupt) 프로그램 실행 중에 CPU의 현재 처리 순서를 중단시키고, 다른 동작을 수행하도록 요구하는 시스템 동작
  • 3. 외부로부터 인터럽트 요구가 들어온다? CPU는 하던 일을 중단하고, 요구된 인터럽트를 위한 프로그램을 실행합니다.
  • 4. 실생활에서의 인터럽트 온라인 강의 기간… 선생님의 요구에 따라 ZOOM에 접속해야 한다! 점심을 먹으며 넷플릭스를 보고 있는 나 소프트웨어 공학 상담 누구누구 들어오세요 ^^ 일시정지! ZOOM 접속해서 상담하기 끝나면 다시 재생 ^^
  • 5. 간단하게 말하면 인터럽트가 들어왔다? 어떤 장치가 인터럽트를 요구했는지 확인 해당 ISR 호출 서비스가 종료되면 중단되었던 원래 프로그램 실행 *ISR? Interrupt Service Routine
 인터럽트를 수행하기 위해 수행되는 프로그램 루틴
  • 6. 세부적으로 알아볼까요? 다음에 실행할 명령어 주소(PC의 내용)를 스택에 저장 ISR 호출하기 위해 그 루틴의 시작 주소를 PC에 적재 현재의 명령어 실행 종료 후 ISR 호출 스택에 저장해 뒀던 명령어 주소를 PC에 적재 … *PC? Program Counter CPU의 레지스터 중 하나
 다음 명령어의 주소를 가지고 있음
  • 7. 실생활에 적용하기 아까와 같은 상황입니다! 점심을 먹으며 넷플릭스를 보고 있는 나 TO-DO LIST 인덱스 해야 할 일 33 굿 플레이스 시즌 2 3화 17:38 34 굿 플레이스 시즌 2 3화 17:39 35 굿 플레이스 시즌 2 3화 17:40 … 231 소프트웨어 공학 ZOOM 접속 232 소프트웨어 공학 ZOOM 상담 233 소프트웨어 공학 ZOOM 종료 다음에 할 일 포스트잇 38478*#&$(*#&( 8374 @#$37892*#& 34현재 실행 중
  • 8. 실생활에 적용하기 아까와 같은 상황입니다! TO-DO LIST 인덱스 해야 할 일 33 굿 플레이스 시즌 2 3화 17:38 34 굿 플레이스 시즌 2 3화 17:39 35 굿 플레이스 시즌 2 3화 17:40 … 231 소프트웨어 공학 ZOOM 접속 232 소프트웨어 공학 ZOOM 상담 233 소프트웨어 공학 ZOOM 종료 다음에 할 일 포스트잇 38478*#&$(*#&( 8374 @#$37892*#& 231현재 실행 중소프트웨어 공학 상담 누구누구 들어오세요 ^^ 인터럽트 끝나고 실행할 거: 34번
  • 9. 상담 시작! 실생활에 적용하기 아까와 같은 상황입니다! TO-DO LIST 인덱스 해야 할 일 33 굿 플레이스 시즌 2 3화 17:38 34 굿 플레이스 시즌 2 3화 17:39 35 굿 플레이스 시즌 2 3화 17:40 … 231 소프트웨어 공학 ZOOM 접속 232 소프트웨어 공학 ZOOM 상담 233 소프트웨어 공학 ZOOM 종료 다음에 할 일 포스트잇 38478*#&$(*#&( 8374 @#$37892*#& 232 현재 실행 중 인터럽트 끝나고 실행할 거: 34번
  • 10. 실생활에 적용하기 아까와 같은 상황입니다! TO-DO LIST 인덱스 해야 할 일 33 굿 플레이스 시즌 2 3화 17:38 34 굿 플레이스 시즌 2 3화 17:39 35 굿 플레이스 시즌 2 3화 17:40 … 231 소프트웨어 공학 ZOOM 접속 232 소프트웨어 공학 ZOOM 상담 233 소프트웨어 공학 ZOOM 종료 다음에 할 일 포스트잇 38478*#&$(*#&( 8374 @#$37892*#& 34 현재 실행 중 상담 끝!
  • 11. 실생활에 적용하기 아까와 같은 상황입니다! TO-DO LIST 인덱스 해야 할 일 33 굿 플레이스 시즌 2 3화 17:38 34 굿 플레이스 시즌 2 3화 17:39 35 굿 플레이스 시즌 2 3화 17:40 … 231 소프트웨어 공학 ZOOM 접속 232 소프트웨어 공학 ZOOM 상담 233 소프트웨어 공학 ZOOM 종료 다음에 할 일 포스트잇 38478*#&$(*#&( 8374 @#$37892*#& 35 현재 실행 중 다시 재생 ^^
  • 12. 다중 인터럽트 ISR 처리 중 다른 인터럽트가 발생한 상황
  • 13. 처리 방법 1. 시스템 운영상 중요한 프로그램, 도중에 중단할 수 없는 입출력 동작 등일 경우 새로운 인터럽트 요구를 수행하지 않음! Interrupt flag 사용: 0(인터럽트 처리 불가), 1(가능) 우선 순위로 판단하여 인터럽트 처리! 2. 이전 상황 이외의 경우