Implementing threads using C++

I have an API call in my application where I am checking the time taken for a single call. I have put this in a FOR loop and using 10000 calls to get the average times of all calls. Now the issue which came up was that the actual application using the API, is multi-threaded. If I wish to make my application also do the same, how would I go about doing this?

The platform is REL and my aim is to send multiple calls in the same time with either the same parameters or different parameters. Can this be implemented in C++ and if so, what library functions to use and can an example be provided for the same?


Probably the best C++ library to use for threading is the thread library in Boost, but like all C++ threading, you will be forced to manually do your synchronization. You will need to use mutex and lock types to make it work properly. Your question isn't very clear, so I can't really help you any more (though I think you don't actually need threading, but I could be completely misunderstanding).

Need Your Help

Specifying custom fields for contacts in Google Contacts API v3

python google-contacts

How do I specify custom fields while creating/updating a contact with the API (also retrieving it)? I'm using the Python API.

How do I cast a variable to the same type of a dynamic variable?

c# .net variables dynamic casting

I'm currently working on an amplification method that accepts PCM samples as an ICollection<dynamic> (the caller will only pass a collection of either: sbyte, short or int). The amplification

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.