Very well done Emil!
Fun fact: This course, DD1396 Parallel Programming in Introduction to Computer Science, doesn't feature parallelism. Gorutines are mainly concurrent, sometimes executed in parallel on different cores. They are implemented as tasks and are scheduled on OS-threads. Thus process partitioning might, in certain contexts, not be effective. Every process in Go is carried by goroutines; the main function is running on the main goroutine. Goroutines also don't have to be run directly after creation, but are queued in wait for an execution window. Therefore, programmers cannot be sure that gorutine results are produced in a foreseen manner.
Thanks for such well written and detailed answers!
Keep it up!
Very well done Emil!
Fun fact: This course, DD1396 Parallel Programming in Introduction to Computer Science, doesn't feature parallelism. Gorutines are mainly concurrent, sometimes executed in parallel on different cores. They are implemented as tasks and are scheduled on OS-threads. Thus process partitioning might, in certain contexts, not be effective. Every process in Go is carried by goroutines; the main function is running on the main goroutine. Goroutines also don't have to be run directly after creation, but are queued in wait for an execution window. Therefore, programmers cannot be sure that gorutine results are produced in a foreseen manner.
Thanks for such well written and detailed answers!
Keep it up!