Closed

C++ Intel TBB need help with concurrency control

I have a basic websocket server implemented in C++.

I'm using Intel TBB's concurrent hash_map to store all the users, uniquely identified by the id.

The concurrent hash map will hold a key value pair of <int> and <std::set<string>> where the int is the user's id, and the <std::set<string>> is a set of all instances of the user. For example, the same user user will have the same id say #50, but this user may be connected using multiple devices, such as phone or tablet etc.

so the hash_map will look like this

hash map: {

50: ["user50_pc", "user50_desktop"]...etc,

51: ["user51_mobile..."] etc

}

When the set is empty, it must be deleted using the c++ delete keyword, and the key (50 or 51) must be deleted in the hash

This is all being executed in concurrently with multiple threads.

I've done the code to work for one thread, but I need help getting it to work using multiple threads.

Also need performance improvements.

Only comment if you used intel tbb before.

Thanks

Skills: C++ Programming

See more: Desktop and Mobile Application C#, i need help with c++ programming, need help with c# programming, need help in c programming, i need help writing an essay on gun control, need help internal server error wordpress, need help installing dell server, need help installing php website server, need help uploading template server, coldfusion website need help, need help fixing cre loaded, need help building resume, http wwwgetafreelancercomprojectsc windowscreate concurrency control module forhtml, need help text website, open source projects need help, freelance need help wsdl file, need help adding google adsense site, mp3 files need help transcribing

About the Employer:
( 11 reviews ) Sydney, Australia

Project ID: #15242497

4 freelancers are bidding on average $44 for this job

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ More

$80 AUD in 1 day
(68 Reviews)
6.4
marekmosna

Hi, I can help you with it. Relevant Skills and Experience 15 years in software development Proposed Milestones $30 AUD - tbb help

$30 AUD in 1 day
(12 Reviews)
4.1
martinrisa1

Hi, I am professional freelancer and student of theoretic informatics, I have several experience with Intel's TBB library. can you please sned me the whole code? Relevant Skills and Experience C++ Programming Propose More

$50 AUD in 0 days
(5 Reviews)
3.4
xinyusoc

I am pretty sure i can do this in a better way rather than tbb.

$15 AUD in 1 day
(0 Reviews)
0.0