Checkin runtime lecture
This commit is contained in:
parent
e47843ed39
commit
f9f60e3656
3 changed files with 47 additions and 0 deletions
1
lectures/10-runtime/.gdb_history
Normal file
1
lectures/10-runtime/.gdb_history
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bt
|
12
lectures/10-runtime/example/main.go
Normal file
12
lectures/10-runtime/example/main.go
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println(os.Getpid())
|
||||||
|
time.Sleep(time.Hour)
|
||||||
|
}
|
34
lectures/10-runtime/lecture.slide
Normal file
34
lectures/10-runtime/lecture.slide
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
low-level
|
||||||
|
Лекция 9
|
||||||
|
|
||||||
|
Короткий Фёдор
|
||||||
|
|
||||||
|
* Go runtime
|
||||||
|
|
||||||
|
- Compiler
|
||||||
|
- GC
|
||||||
|
- Scheduler
|
||||||
|
|
||||||
|
* Compiler
|
||||||
|
|
||||||
|
- Inlining
|
||||||
|
- Escape Analysis
|
||||||
|
- Bound Check Elimination
|
||||||
|
|
||||||
|
* GC
|
||||||
|
|
||||||
|
- STW
|
||||||
|
- Mark Assist
|
||||||
|
- Knobs
|
||||||
|
- Finalizer
|
||||||
|
- sync.Pool
|
||||||
|
- Stack Growth
|
||||||
|
- Write Barrier
|
||||||
|
|
||||||
|
* Scheduler
|
||||||
|
|
||||||
|
- G, M, P model
|
||||||
|
- Global Run Queue, Local Run Queue
|
||||||
|
- Knobs
|
||||||
|
- Runaway threads problem
|
||||||
|
- runtime.LockOsThread
|
Loading…
Reference in a new issue