A Practical Guide to Preventing Deadlocks and Leaks in Go
Offered By: Gopher Academy via YouTube
Course Description
Overview
Explore a practical guide to preventing deadlocks and leaks in Go through this GopherCon 2015 talk by Richard Fliam. Learn five battle-tested guidelines developed while creating Pillar, a high-performance Go application processing 15 gigabits per second and serving millions of users. Discover how to effectively use Communicating Sequential Processes (CSP) in Go, simplify code, and avoid common pitfalls. Gain insights into topics such as concurrent paradigms, CSP design tips, flow of data, control flow, manager-driven workflows, and explicit cancellation. Examine code snippets and real-world examples, including MPEG TS muxing and handling program map tables. Master techniques for preventing memory leaks, proper use of the context library, and best practices for working with tickers and infinite loops.
Syllabus
Introduction
Dont Panic
Communicate Sequentially
Concurrency Paradigm
What is a process
Type
Process
CSP
CSP Design Tips
Flow of Data
Control Flow
Manager Driven Workflow
Overdependence on Signals
Goto Dijkstra
Connection Diagrams
Go Gophers
God Processes
Rats Nest
Cycles
Structures
Pipelines
Unidirectional flows
Publish subscriber model
Unsubscribe
Exit strategy
Explicit cancellation
Memory Leak
Context Library
Collect Results
Code Snippet
Preventing Leaks
MPEG TS
Muxing
Packets
MPEGTS
Program Map Table
PatListener
Leaks
Stop Tickers
Cancel on Context
Dont defer inside of an infinite loop
Outro
Taught by
Gopher Academy
Related Courses
C# Asynchronous Programming - Async - Await - Task and Deadlock Fix by ConfigureAwaitSoftware Engineering Courses - SE Courses via YouTube What is Deadlock - Necessary Conditions - Handling Methods
CodeHelp - by Babbar via YouTube Flattened Clos - Designing High-performance Deadlock-free Expander Data Center Networks Using Graph Contraction
USENIX via YouTube Back to Basics - Efficient Async and Await
NDC Conferences via YouTube Back to Basics - Efficient Async and Await
NDC Conferences via YouTube