Skip to content

Commit e37c36c

Browse files
committed
aa
1 parent d1b6f86 commit e37c36c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ something 5 hello
8484

8585
# [](#header-1) go routines
8686

87-
I think them as threads, fork etc.
87+
I think them as threads (not fork).
88+
89+
just add 'go' before any function and it will start running in own thread.
90+
Also means that main has to wait for threads to end/exit.
8891

8992
Here main() waits for childs to exit and first foo() finnishes last.
9093

@@ -207,6 +210,9 @@ I hope standard library has sceptical members what to put there or were are in t
207210
So I learned **my lesson**, I have to think what members really need be private or use interface in an github project.
208211
If I think it is any use to anybody other than just cut and paste code.
209212

213+
# [](#header-2) interfaces
214+
215+
after googling a lot my concusion is that they are like class in C++ with all functions as empty virtuals.
210216

211217

212218

0 commit comments

Comments
 (0)