Skip to content
Snippets Groups Projects
Commit 0554368f authored by Jarko Papalitsas's avatar Jarko Papalitsas
Browse files

Instructions on where to answer the exercise 3

parent 62d41bb9
No related branches found
No related tags found
No related merge requests found
Vastaa tehtävän 3 kysymyksiin tässä tiedostossa. Vastaa suomeksi.
Use this file to answer to the questions in exercise 3
# Question 1: Program structure
Your answer here
# Question 2: More threads than cores
Your answer here
# Question 3: workQueue
Your answer here
...@@ -127,7 +127,7 @@ Otherwise, the exercise is similar to the exercise 1. ...@@ -127,7 +127,7 @@ Otherwise, the exercise is similar to the exercise 1.
### Exercise 3: ### Exercise 3:
Answer to the following questions by giving short explanations. You may use the ThreadRunner application to test your hypotheses. Answer to the following questions by giving short explanations. You may use the ThreadRunner application to test your hypotheses. Use the `answers.md` file on the root of the project to save your answers.
1. Familiarize yourselves with the ThreadRunner2 structure. How does the execution advance? You do not have to describe the UI classes. 1. Familiarize yourselves with the ThreadRunner2 structure. How does the execution advance? You do not have to describe the UI classes.
2. In theory it would be possible to run more tasks with more threads than there are cores in the computer running the application. What would happen in this case? How would this affect the computation times? (We will assume that the task is CPU heavy) 2. In theory it would be possible to run more tasks with more threads than there are cores in the computer running the application. What would happen in this case? How would this affect the computation times? (We will assume that the task is CPU heavy)
......
...@@ -135,7 +135,7 @@ Muilta osin tehtävä suoritetaan samoin kuin tehtävä 1. ...@@ -135,7 +135,7 @@ Muilta osin tehtävä suoritetaan samoin kuin tehtävä 1.
### Tehtävä 3. Selvitystyö ### Tehtävä 3. Selvitystyö
Vastatkaa seuraaviin kysymyksiin lyhyesti perustellen. Apuna voi käyttää työssä toteutettua ohjelmaa ja sillä kokeilla, miten suoritusajat muuttuvat erilaisilla asetuksilla ja tehtävienjakotyypeillä. Vastatkaa seuraaviin kysymyksiin lyhyesti perustellen. Apuna voi käyttää työssä toteutettua ohjelmaa ja sillä kokeilla, miten suoritusajat muuttuvat erilaisilla asetuksilla ja tehtävienjakotyypeillä. Kirjoittakaa vastaukset projektin juuressa olevaan `answers.md`-tiedostoon.
1. Tutustukaa Threadrunner2-ohjelman rakenteeseen. Selostakaa lyhyesti, miten ohjelman suoritus kulkee. Käyttöliittymäluokkia ei tarvitse läpikäydä. 1. Tutustukaa Threadrunner2-ohjelman rakenteeseen. Selostakaa lyhyesti, miten ohjelman suoritus kulkee. Käyttöliittymäluokkia ei tarvitse läpikäydä.
2. Teoriassa olisi mahdollista valita useampia säikeitä työskentelemään yhtäaikaisesti kuin mitä prosessorissa olisi ytimiä. Mitä tässä tapauksessa tapahtuisi? Miten tämä oletettavasti vaikuttaisi laskenta-aikoihin? (Olettaen, että työt olisivat CPU-intensiivisiä) 2. Teoriassa olisi mahdollista valita useampia säikeitä työskentelemään yhtäaikaisesti kuin mitä prosessorissa olisi ytimiä. Mitä tässä tapauksessa tapahtuisi? Miten tämä oletettavasti vaikuttaisi laskenta-aikoihin? (Olettaen, että työt olisivat CPU-intensiivisiä)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment