Created
June 18, 2018 18:59
-
-
Save neon520/e4baabc02525680744ea8982d0c1d914 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018/06/18 20:57:22 Init 0xc42007e030 | |
2018/06/18 20:57:22 Jobs Working 0xc42007e030 | |
2018/06/18 20:57:22 Sending 0 | |
2018/06/18 20:57:22 Sending 1 | |
2018/06/18 20:57:22 Sending 2 | |
2018/06/18 20:57:22 Sending 3 | |
2018/06/18 20:57:22 Pruebas 0xc42007e030 | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c42007e030 by goroutine 6: | |
main.(*Threader).produce() | |
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:78 +0x312 | |
Previous write at 0x00c42007e030 by goroutine 8: | |
main.(*Threader).counter() | |
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:108 +0x100 | |
Goroutine 6 (running) created at: | |
main.(*Threader).Init() | |
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:50 +0x3fa | |
main.main() | |
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:28 +0xa3 | |
Goroutine 8 (running) created at: | |
main.(*Threader).Init() | |
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:54 +0x444 | |
main.main() | |
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:28 +0xa3 | |
================== | |
2018/06/18 20:57:32 Received 2 | |
2018/06/18 20:57:32 Received 3 | |
2018/06/18 20:57:32 Received 0 | |
2018/06/18 20:57:32 Received 1 | |
2018/06/18 20:57:33 Sending 4 | |
2018/06/18 20:57:33 Sending 5 | |
2018/06/18 20:57:33 Sending 6 | |
2018/06/18 20:57:33 Sending 7 | |
2018/06/18 20:57:43 Received 5 | |
2018/06/18 20:57:43 Received 7 | |
2018/06/18 20:57:43 Received 4 | |
2018/06/18 20:57:43 Received 6 | |
2018/06/18 20:57:44 Sending 8 | |
2018/06/18 20:57:44 Sending 9 | |
2018/06/18 20:57:44 Sending 10 | |
2018/06/18 20:57:44 Sending 11 | |
2018/06/18 20:57:54 Received 9 | |
2018/06/18 20:57:54 Received 8 | |
2018/06/18 20:57:54 Received 11 | |
2018/06/18 20:57:54 Received 10 | |
2018/06/18 20:57:55 Sending 12 | |
2018/06/18 20:57:55 Sending 13 | |
2018/06/18 20:57:55 Sending 14 | |
2018/06/18 20:57:55 Sending 15 | |
2018/06/18 20:58:05 Received 13 | |
2018/06/18 20:58:05 Received 14 | |
2018/06/18 20:58:05 Received 15 | |
2018/06/18 20:58:05 Received 12 | |
2018/06/18 20:58:06 Sending 16 | |
2018/06/18 20:58:06 Sending 17 | |
2018/06/18 20:58:06 Sending 18 | |
2018/06/18 20:58:06 Sending 19 | |
2018/06/18 20:58:16 Received 16 | |
2018/06/18 20:58:16 Received 18 | |
2018/06/18 20:58:16 Received 19 | |
2018/06/18 20:58:16 Received 17 | |
2018/06/18 20:58:17 Sending 20 | |
2018/06/18 20:58:17 Sending 21 | |
2018/06/18 20:58:17 Sending 22 | |
2018/06/18 20:58:17 Sending 23 | |
2018/06/18 20:58:27 Received 23 | |
2018/06/18 20:58:27 Received 21 | |
2018/06/18 20:58:27 Received 20 | |
2018/06/18 20:58:27 Received 22 | |
2018/06/18 20:58:28 Sending 24 | |
2018/06/18 20:58:28 Sending 25 | |
2018/06/18 20:58:28 Sending 26 | |
2018/06/18 20:58:28 PRODUCE took 1m6.036995173s | |
2018/06/18 20:58:38 Received 26 | |
2018/06/18 20:58:38 RECEIVE took 1m16.037824798s | |
Found 1 data race(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XD esta claro no?
WARNING: DATA RACE
READ at 0x00c42007e030 by goroutine 6:
main.(*Threader).produce()
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:78 +0x312
Previous WRITE at 0x00c42007e030 by goroutine 8:
main.(*Threader).counter()
/home/neon520/GitHub/GO-for-dummies/ppwt2.go:108 +0x100