Trading app - Which Construct?

General OpenMP discussion
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Locked
ealmachado
Posts: 3
Joined: Fri Feb 17, 2017 12:06 pm

Trading app - Which Construct?

Post by ealmachado »

I'll make a trading app that trades up to 5 assets concurrently. The trading server is accessed through websockets. So each concurrent work/task should open/close a websocket connection every minute (1min trading).

So, which construct should I use? Tasking is the way to go?

Thank you!

MarkB
Posts: 808
Joined: Thu Jan 08, 2009 10:12 am
Location: EPCC, University of Edinburgh

Re: Trading app - Which Construct?

Post by MarkB »

I'm not sure tasks will necessarily be helpful in this case. You might just want to use a parallel region to create 5 threads and let each one operate on a different asset. Using tasks may just make the timing and ordering of events harder to control.

ealmachado
Posts: 3
Joined: Fri Feb 17, 2017 12:06 pm

Re: Trading app - Which Construct?

Post by ealmachado »

Thank you Mark!

Locked