User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
go:channels [2019-11-27 11:53]
ziggi
go:channels [2019-11-27 11:59] (current)
ziggi [Go threads & channels sample]
Line 69: Line 69:
 message 1 message 1
 receive timeout receive timeout
 +^C
 +
 +$ go build channel
 +$ daemon -f ./channel
 +$ ps axlH | grep channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.02 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.02 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.01 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.01 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.01 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.01 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.01 ./channel
 + 1000 72880 61365   ​0 ​ 20  0  102788 ​   2240 uwait    S+    7    0:00.01 ./channel
 </​file>​ </​file>​
  
 ---- ----