# Concurrent programming, with examples

DevFeed: [Concurrent programming, with examples](<https://devfeed.tech/articles/concurrent-programming-with-examples-21487.md>)

Original publisher: [Read original article](<https://begriffs.com/posts/2020-03-23-concurrent-programming.html>)

Published: 2020-03-23T00:00:00Z

Content type: article

Language: en

Sources: [Joe Nelson](<https://devfeed.tech/sources/joe-nelson.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>), [API](<https://devfeed.tech/topics/api.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [concurrent-programming](<https://devfeed.tech/tags/concurrent-programming.md>), [posix](<https://devfeed.tech/tags/posix.md>), [thread](<https://devfeed.tech/tags/thread.md>)

## AI overview

An introductory article on concurrent programming that explains concurrency versus parallelism and covers threading and locking as practical techniques for building concurrent software. It introduces POSIX threads and discusses how concurrency can benefit from hardware parallelism, including limitations imposed by global interpreter locks in Ruby MRI and CPython.

## Source excerpt

2020-03-23 Mention concurrency and you're bound to get two kinds of unsolicited advice: first that it's a nightmarish problem which will melt your brain, and second that there's a magical programming language or niche paradigm which will make all your problems disappear. We won't run to either extreme here. Instead we'll cover the production workhorses for concurrent software - threading and locking - and learn about them through a series of interesting programs.