<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Goroutine - 태그 - lee's blog</title><link>https://ken-0913.github.io/myblog/tags/goroutine/</link><description>Goroutine - 태그 - lee's blog</description><generator>Hugo -- gohugo.io</generator><language>ko-kr</language><managingEditor>hyeonjae0913@gmail.com (ken-0913)</managingEditor><webMaster>hyeonjae0913@gmail.com (ken-0913)</webMaster><lastBuildDate>Mon, 20 Jul 2026 09:00:00 +0900</lastBuildDate><atom:link href="https://ken-0913.github.io/myblog/tags/goroutine/" rel="self" type="application/rss+xml"/><item><title>Go Goroutine 입문 — 동시성을 다루는 가장 작은 단위</title><link>https://ken-0913.github.io/myblog/posts/go/go-goroutine-for-beginners/</link><pubDate>Mon, 20 Jul 2026 09:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/go/go-goroutine-for-beginners/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/go-goroutine-for-beginners-64aa235c.png" referrerpolicy="no-referrer">
            </div><p><strong>Goroutine</strong>은 Go에서 함수를 동시에 실행하는 가장 작은 단위이다.
Go는 언어 차원에서 동시성(concurrency)을 지원하며, 그 핵심이 Goroutine이다.
이 글은 Goroutine을 처음 접하는 경우를 기준으로 개념과 기본 사용법을 정리한다.</p>
<h2 id="동시성concurrency이란" class="headerLink">
    <a href="#%eb%8f%99%ec%8b%9c%ec%84%b1concurrency%ec%9d%b4%eb%9e%80" class="header-mark"></a>동시성(Concurrency)이란</h2><p><strong>동시성</strong>은 여러 작업을 번갈아 진행해 마치 함께 처리되는 것처럼 보이게 하는 방식이다.
예를 들어 파일을 내려받으면서 동시에 로그를 출력하는 상황이 이에 해당한다.
하나의 작업이 끝날 때까지 다른 작업이 멈춰 기다리지 않아도 된다는 점이 핵심이다.</p>
<p>일반적인 함수 호출은 **순차적(sequential)**이다.
앞 함수가 끝나야 다음 함수가 실행되므로, 느린 작업이 있으면 전체가 함께 느려진다.
Goroutine은 이 순차 실행을 벗어나 함수를 <strong>동시에</strong> 돌리는 수단이다.</p>]]></description></item></channel></rss>