Update README.md

This commit is contained in:
Xinwei Xiong 2023-08-24 15:35:44 +08:00 committed by GitHub
parent a22a0e5b52
commit ec772dfe56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,15 @@ $ ncpu
This will return an integer representing the number of available CPU cores.
## install ncpu
**User go module:**
```bash
$ go install github.com/OpenIMSDK/Open-IM-Server/tools/ncpu@latest
$ ncpu
```
### Example:
Let's say you're compiling a project using `make`. To utilize all the CPU cores for the compilation process, you can use: