Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

A Practical Guide to Preventing Deadlocks and Leaks in Go

Gopher Academy via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of A Practical Guide to Preventing Deadlocks and Leaks in Go

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.