sunnycookie
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 학습활동 (동시성) ## Concurrency Programming - 동시성(Concurrency) 프로그래밍, 병렬(Parallelism) 프로그래밍은 어떻게 다르며, 우리가 주로 접할 iOS 환경에서는 무엇을 더 고려해봐야 할까? - 동시성 프로그래밍 : 한개의 코어가 여러가지의 작업을 동시에 수행하는 것처럼 작업하는 것 - 병렬 프로그래밍 : 여러개의 코어가 한개의 작업을 쪼개서 수행하는 것 <img height = 300, src = "https://i.imgur.com/N7F5orM.png"> - 저희는 Concurrency만 할거임...! 더 많이 쓸거니까!! - 멀티 코어를 직접적으로 코더가 관리하는 것이 굉장히 어렵기 때문에 Apple에서 이를 관리하는 라이브러리를 구성해두었음. - 그렇기 때문에 병렬 프로그래밍 보다는 동시성 프로그래밍을 더 많이 고려할 것이다. - 동시성 프로그래밍, 병렬 프로그래밍, 동기(synchronous)와 비동기(asynchronous)의 개념은 어떤 상관관계를 가질까? - 동시성 프로그래밍과 병렬 프로그래밍이 상관 관계를 가지고, 동기 비동기가 상관 관계를 가진다고 생각한다. - 동시성 및 병렬 프로그래밍을 구현하는 방식에 동기 비동기가 있음? - ios에서는 동시성프로그래밍을 하기위해서 동기/비동기 방식을 사용한다. - 애플이 동시성 프로그래밍 또는 병렬 프로그래밍을 지원하기 위해 사용하는 기술엔 무엇무엇이 있을까? - GCD / Operation / Async / Await - 프로그래밍에서 Thread는 무엇이고 iOS 환경에서 이를 다루기 위한 방법에는 무엇무엇이 있으며 그 차이는 무엇일까? - 프로세스 안에서 작업흐름의단위 - GCD를 사용하면 스레드 관리를 시스템이 내부적으로 처리해준다. - 멀티쓰레드 환경을 직접 구현하기도 가능하지만 굉장히 복잡하다...(?) ## Process, Processor - Windows 운영체제는 32bit 버전, 64bit 버전, ARM 버전 등 다양한 버전이 존재합니다. 이 버전은 어떤 것을 의미하며 왜 이렇게 다양한 버전이 존재해야 할까요? - 32비트, 64비트는 컴퓨터 프로세서(CPU로도 불림)가 정보를 처리하는 방식을 말하는 용어입니다. 64비트 버전의 Windows는 32비트 시스템보다 대용량 랜덤 액세스 메모리(RAM)를 더욱 효율적으로 처리합니다. - 저사양을 사용해야할 때도 있어서 32bit도 남아있는게 아닐까요????(오버스펙이 필요없을때 저렴하니까!) - 내 매킨토시의 프로세서는 무엇인가요? - 써키쿠키 : M1프로세서 (8코어) - 미니 : M1 Pro 프로세서 (10코어) - 망디 : 2.6 GHz 6코어 Intel Core i7 - 애플이 새로 출시한 매킨토시 컴퓨터에서 iOS의 애플리케이션을 실행할 수 있는 이유는 무엇일까요? - 그것은 같은 ios 환경이니깐.. - arm 기반이기 때문 - 동일한 CPU 아키텍처를 사용하고 있기 때문에 다른처리를 하지않고 사용할 수 있다. - 이전의 매킨토시 컴퓨터에서는 불가능했던 이유는 무엇일까요? - 이전의 매킨토시는 Intel의 CPU를 사용했고, 아이폰의 CPU는 arm기반의 CPU를 사용하고있어서 서로다른 아키텍처를 사용하고있어 불가능했었다! - 프로세서를 위한 프로세스 스케쥴링 방식에는 어떤 것이 있는지 간략히 알아봅시다. - ?? - SJF - 우선순위 - HRN - 다단계 큐 - 멀티 다단계 큐 - 운영체제 입장에서 다양한 프로세스를 스케쥴링하는 규칙을 만들어봅시다. --- 야곰의 설명 ### 동시성 프로그래밍 - 동시성 프로그래밍: 하나의 코어가 여러 작업을 동시에 하는것처럼 보이게 하는것 - 병렬 프로그래밍: 같은작업 혹은 유사한 작업을 여러개의 코어가 나누어서 작업을 수행하는 것. - 동시성프로그래밍과 병렬프로그래밍은 반대되는 개념이 아니다.코어가 여러개 있더라도 각각 한개의 코어가 여러일을 처리하는것처럼 하고있다면 동시성 프로그래밍이라는 것이다. ### 동기 비동기 - 동기(synchronous): 앞에 작업 끝나길 기다리고 시작한다 - 비동기(asynchronous): 앞에 작업이 끝나지 않아도 안기다리고 시작한다 ### 스레드 HW관점 쓰레드 - 하나의 코어가 동시에 처리하는 명령어의 단위 SW관점 쓰레드 - 하나의 프로그램에서 독립적으로 실행되는 단위 쓰레드는 코드를 실행해주는 하나의 흐름 여기서 씨피유 코어 하나는 하나의 쓰레드를 실행할 수 있다 (하나에 한가지 흐름 가능) GCD를 이용해 디스패치 큐: 작업을 대기하는 곳 디스패치큐에 작업이 생기면, 디스패치큐가 쓰레드를 만들고 작업한 후 비워지면 쓰레드를 비워준다. 2016 WWDC 유용해 정리를해보자 concurrency 여러 작업 흐름을 동시에 하는 것처럼 보인다. 이걸 하기위해 쮜씨디기술을 쓸껀데 그 작업흐름을 디스패치쿠를 활용한다. 우리는 이제 필요한 작업들을 디스패티큐에 던지면된다 프로그램마다 무조건 갖고있는건 메인큐이다 메인큐는 무조건 UI작업을한다. 그래서 유아이 작업 외에는 전부 다른 쓰레드에 던져준다 생각하면된다. 메인쓰레드에 영향이 없도록 쓰레드관리가 알아서 된다. 애씽크가 아니고 싱크로 던지면 메인쓰레드도 쉰다는 이야기.. 그래서 던질때 보통 에씽크로 던진다.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully