Ecosyste.ms: Awesome
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: about 5 hours ago
JSON representation
A bad program to learn about Go Routines
- Host: GitHub
- URL: https://github.com/fyzanshaik/oddeven-go
- Owner: fyzanshaik
- Created: 2024-02-01T15:54:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T16:02:05.000Z (10 months ago)
- Last Synced: 2024-06-19T13:34:53.863Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```