Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

Last synced: about 5 hours 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
```