5062CEM

Programming and Algorithms 2

Threading in C++

Threading in C++

For this activity, you will need to be using an Integrated Development Environment (IDE). The recommended IDE for this module is JetBrains IntelliJ IDEA for Python and JetBrains CLion for C++. You can follow instructions at the following page to set up your development environment:

Setting up your Development Environment

For this task you will need to implement a method that will create two threads. The first thread will display odd numbers up-to (and including) the limit of 100. The second thread will be the same as the first thread, but will display only the even numbers.

For this task you will create a script of n threads, where n is a value in the range of 1...12 . Each of the threads will display the multiplication table for a given number in the range of n. For example, thread one will display the multiplication table for 1 and thread two will display the multiplication table for 2.

If you are struggling with this lab activity, you may want to get some additional support. You can speak to the module leader/team in the room of when the lab week is active, or you can visit the Additional Support page for more information on how you can get extra support.