Message336146
so, I have also tested with the last docker image of golang.
> docker run --rm --cpus 1 -it golang /bin/bash
here is the code of golang:
package main
import "fmt"
import "runtime"
func main() {
cores := runtime.NumCPU()
fmt.Printf("This machine has %d CPU cores.\n", cores)
}
Here is the output
> ./demo
This machine has 4 CPU cores.
When I try with grep on /proc/cpuinfo
I get this result
> grep processor /proc/cpuinfo -c
4
I will test with openjdk because it's related to Java and see if I can get the result of 1 |
|
Date |
User |
Action |
Args |
2019-02-20 20:15:06 | matrixise | set | recipients:
+ matrixise, keirlawson |
2019-02-20 20:15:06 | matrixise | set | messageid: <1550693706.59.0.520095378981.issue36054@roundup.psfhosted.org> |
2019-02-20 20:15:06 | matrixise | link | issue36054 messages |
2019-02-20 20:15:06 | matrixise | create | |
|