Giter Site home page Giter Site logo

ccc's Introduction

📑 Concurrency Crash Course

A quick introduction to concurrency in Go, for people familiar with Imperative or Object-Oriented programming.

Each lab is designed to take 2-3 hours depending on your previous experience. The first 3 labs have associated preparation lectures. It is recommended that you spend an hour before each lab, going through the lecture and playing with the provided code.

Lab 1️⃣ - Introduction to imperative programming in Go

You will become familiar with Go's syntax and features. The lab focuses on those aspects of the language that are relevant and useful for the future labs.

This lab will assume that you already know at least one other Imperative or Object-oriented language. A basic understanding of pointers is also required.

Lab 2️⃣ - Basic concurrency

This lab will teach you basics of concurrent computing. You will be introduced to channels and goroutines, which are based on the CSP message-passing model for concurrency. In the final question you will be given working serial code and asked to make it faster by parallelising it.

No previous experience of using threads or channels is required.

Lab 3️⃣ - Advanced concurrency

You will get to experience more complicated patterns in concurrent programming. You will get to modify your quiz from Lab 1 to include a 5s timeout and you will investigate costs and benefits to performing merge sort using hundreds of goroutines.

Lab 4️⃣ - Beyond channels

This final lab will focus on concurrency without using channels. The classic memory-sharing model is introduced, including POSIX-style semaphores, mutexes and condition variables. The final question of this lab asks you to write a Bank Simulator using both memory-sharing and channels, asking you to apply all the skills you have gathered throughout the course.

Note that this lab does not yet have an associated lecture. You will need at least a basic understanding of mutexes and semaphores to succeed.


The above lectures and labs were originally developed for University of Bristol Concurrent Computing Unit (COMS20001) by Chris Gora under the supervision of Dr. Sion Hannuna.

ccc's People

Contributors

chrisgora avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.