Book Image

C++ Multithreading Cookbook

By : Miloš Ljumović
Book Image

C++ Multithreading Cookbook

By: Miloš Ljumović

Overview of this book

<p>Creating multithreaded applications is a present-day approach towards programming. With the power of C++, you can easily create various types of applications and perform parallelism and optimizations in your existing work. This book is a practical, powerful, and easy-to-understand guide to C++ multithreading. You will learn how to benefit from the multithreaded approach and enhance your development skills to build better applications. This book will not only help you avoid problems when creating parallel code, but also help you to understand synchronization techniques. The end goal of the book will be to impart various multithreading concepts that will enable you to do parallel computing and concurrent programming quickly and efficiently.</p>
Table of Contents (17 chapters)
C++ Multithreading Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Installing MySQL Connector/C


In order to use MySQL Connector/C, you need to perform the following operations:

  1. Open your web browser and navigate to http://dev.mysql.com/downloads/connector/c/.

  2. Download the mysql-connector-c-6.1.3-win32.msi or mysql-connector-c-6.1.3-winx64.msi file, depending on your architecture and project configuration, and then start the installation as shown in the following screenshot:

  3. Accept the terms in the license agreement and select the Complete type of installation. Click on Finish and open Visual Studio, and then open the MultithreadedDBTest solution.

  4. Open Solution explorer and right-click on the MultithreadedDBTest project. Select Properties. Under Configuration Properties, expand the General node. Open the combobox next to Additional Include Directories, and using the Windows folder browser, navigate to C:\Program Files\MySQL\MySQL Connector C 6.1\include, as shown in the following screenshot:

  5. Click on Select Folder.

  6. Under Configuration Properties, expand the Linker node. Open the combobox next to Additional Dependences and enter C:\Program Files\MySQL\MySQL Connector C 6.1\lib\libmysql.lib, as shown in the following screenshot:

  7. Using the Windows file explorer, navigate to C:\Program Files\MySQL\MySQL Connector C 6.1\lib. Copy the libmysql.dll file to C:\Windows\System32.

Now, you can compile and run the MultithreadedDBTest project or any other project that uses MySQL Connector/C.