Tag

sync

0 views collected around this technical thread.

Architecture Development Notes
Architecture Development Notes
Feb 4, 2025 · Fundamentals

Mastering Rust’s Send and Sync Traits for Safe Concurrency

Explore how Rust’s Send and Sync marker traits guarantee thread‑safe ownership transfer and shared references, with clear explanations, practical code examples, custom type implementations, common pitfalls, and performance considerations to help you write reliable concurrent programs.

ARCConcurrencyMutex
0 likes · 8 min read
Mastering Rust’s Send and Sync Traits for Safe Concurrency
Architecture Development Notes
Architecture Development Notes
Jul 20, 2024 · Backend Development

Master Go Concurrency: Mutex, RWMutex, Cond, Atomic, Once & WaitGroup Explained

This article explores Go's built‑in concurrency primitives—including Mutex, RWMutex, Condition variables, atomic operations, sync.Once, and WaitGroup—detailing their purposes, usage patterns, and best‑practice guidelines to write correct and efficient concurrent programs.

AtomicConcurrencyGo
0 likes · 13 min read
Master Go Concurrency: Mutex, RWMutex, Cond, Atomic, Once & WaitGroup Explained
37 Interactive Technology Team
37 Interactive Technology Team
Jun 15, 2023 · Backend Development

Concurrent Safety of Go Maps: Issues, Solutions, and Performance Comparison

Go maps are not safe for concurrent access, so programs can panic when multiple goroutines read and write the same map; to prevent this you can use sync.Once for immutable data, protect maps with sync.RWMutex, employ sharded locks via concurrent‑map, or use the built‑in sync.Map, each offering different performance trade‑offs depending on read/write ratios and concurrency level.

ConcurrencyGomap
0 likes · 13 min read
Concurrent Safety of Go Maps: Issues, Solutions, and Performance Comparison
New Oriental Technology
New Oriental Technology
Dec 10, 2021 · Backend Development

Implementing a Concurrent-Safe Queue in Go

This article explains Go's concurrency safety mechanisms, demonstrates how to build a thread‑safe queue using mutexes, sync.Cond, and context cancellation, and provides complete example code and tests to illustrate proper synchronization and resource management.

Gocontextgoroutine
0 likes · 10 min read
Implementing a Concurrent-Safe Queue in Go
Sohu Tech Products
Sohu Tech Products
Nov 25, 2020 · Mobile Development

Deep Dive into GCD Dispatch Queues, sync/async Behavior, and RunLoop Interaction on iOS

This article explores the intricacies of Grand Central Dispatch on iOS, debunking common misconceptions about main thread and main queue execution, analyzing the internal handling of synchronous tasks, and demonstrating how run‑loop activation influences queue‑thread relationships through a series of code experiments.

AsyncRunLoopdispatch_queue
0 likes · 14 min read
Deep Dive into GCD Dispatch Queues, sync/async Behavior, and RunLoop Interaction on iOS
Sohu Tech Products
Sohu Tech Products
Sep 23, 2020 · Backend Development

Understanding Go Channels: Unbuffered vs Buffered, Usage, and Common Patterns

This article explains Go's channel primitive, comparing unbuffered and buffered channels, demonstrates how to avoid deadlocks with proper goroutine coordination, and shows typical patterns such as select, closing channels, and building concurrency controllers for robust backend services.

ConcurrencyGobuffered
0 likes · 14 min read
Understanding Go Channels: Unbuffered vs Buffered, Usage, and Common Patterns
Ctrip Technology
Ctrip Technology
Jun 29, 2020 · Backend Development

Controlling Goroutine Concurrency in Go: Risks of Unbounded Goroutine Creation and Practical Limiting Techniques

The article explains why creating unlimited Goroutines in Go can exhaust system resources, demonstrates the problem with a sample program, and presents practical methods—including channel throttling, sync.WaitGroup, and third‑party Goroutine pools—to safely limit concurrency and improve performance.

ConcurrencyGochannel
0 likes · 10 min read
Controlling Goroutine Concurrency in Go: Risks of Unbounded Goroutine Creation and Practical Limiting Techniques
Architect
Architect
Jun 23, 2016 · Mobile Development

Analysis of WeChat Sync Protocol and Network Architecture

The article provides a detailed technical analysis of WeChat's communication protocol, describing its SYNC‑based state synchronization, short and long connection designs, packet structures, SyncKey handling, multi‑device login, and differences between mobile and web clients, offering insight for developers and engineers.

NetworkProtocolWeChat
0 likes · 18 min read
Analysis of WeChat Sync Protocol and Network Architecture