An open API service indexing awesome lists of open source software.

https://github.com/fyzanshaik/oddeven-go

A bad program to learn about Go Routines
https://github.com/fyzanshaik/oddeven-go

Last synced: 4 months ago
JSON representation

A bad program to learn about Go Routines

Awesome Lists containing this project

README

        

# OddEven-Go

An educational Go program demonstrating the usage of Go Routines.

## Instructions

Before running the program, ensure to change the function name of the program you are executing to "main". Additionally, make sure to modify the names of similar function names in different files. In Go packages, each function should have a unique name to avoid conflicts.

## Usage

To run the main program:

```bash
go run main.go
```
To execute the concurrency demonstration:
```
go run concurrency.go
```
To run the version using mutex for concurrency:
```
go run mutex-concurrency.go
```