This sample implements multiple solutions to solve n-queens problem. The nqueens-sample solution contains six MFC applications that can run independently. All six applications use the same common graphical user interface (GUI) created with the MFC application wizard and internally each application calls a different nqueens solver to solve the same problem.
Project |
Description |
---|---|
nq-serial |
In this project the nqueens solver is serial, so it tends to be the slowest This project can be built with both Intel C++ or Microsoft Visual C++*. |
nq-win32api |
In this project the nqueens solver uses Win32 threads and performance is better. The number of threads to be used is hard-coded, so it is not as easy to scale This project can be built with both Intel C++ or Visual C++. |
nq-tbb-intel |
In this project the nqueens solver uses Intel(R) Threading Building Blocks (Intel(R) TBB) and both performance and scalability are much better. This project shows you how to use the Intel TBB "parallel_for". This project can be built with both Intel C++ or Visual C++. |
nq-tbb-lambda |
In this project the nqueens solver uses Intel TBB with lambda functions and the performance and scalability are similar to nq-tbb-intel. This project shows you how to use the Intel TBB "parallel_for" with lambda code. This project can be built with both Intel C++ or Visual C++. |
build
build run nq-serial
build run nq-win32api
build run nq-tbb-intel
build run nq-tbb-lambda