race-condition
race?
κ²½μ.
race condition?
κ²½μ μν
a race condition is a condition of a program where its behavior depends on relative timing or interleaving of multiple threads or processes
μ΄λ€ νλ‘κ·Έλ¨μ λμμ΄, μ¬λ¬ μ€λ λλ νλ‘μΈμ€μ μνΈ λ°°μΉμ μ΄ κ±°λ μλμ μΈ νμ΄λ° λλ¬Έμ λ¬λΌμ§λ κ±Έ μλ―Έ.
μ¦ κ²°κ³Όκ° μμΈ‘νλλ‘ λμ€μ§ μμ (λ²κ·Έμ)
[[thread-safe]] νλ€λ λ§μ [[race-condition]] μ μνμμ μμ λ‘λ€λ μλ―Έλ‘ λ΄λ λλλ―.
Elimination
2κ°μ§ λ°©λ²μΌλ‘ race conditionμ λ°©μ§ν μ μμ.
[[avoiding-shared-state]]
Using Synchronizations and Atomic Operations
Conclusion
μ λ°μ μΌλ‘ 2κ°μ νμ λͺ¨λ 곡μ μμμ λν΄ λ°°μ κ° νμν λΆλΆμ΄λΌ μκ°λ¨.
μ½κΈ°λ₯Ό ν λλ μ΄λ¬ν λ°°μ λ₯Ό νμ§ μμλ λμ§λ§, μ°κΈ°λ₯Ό ν λλ λ€λ₯Έ μ€λ λμμ μΉ¨λ²νμ§ λͺ»νλλ‘ λ°°μ μν€λκ² νμν μ§λ.
μ°Έκ³
Last updated
Was this helpful?