The scenario is that there is lets say 1 TB of objects each of ten mb in database.
I have a function named MATCH()
which has a query object, whose return type is double
, and in this function I have mathematical calculations. I have a check that if the value of the result is in between 0 and 1 then i have:
double[ ] Result=new double[eg 1000]
- How can i do this, as the system has 2 GB RAM - Performance.
- Which section I should lock, use mutex or use thread pool? - Thread Safety
- How many threads can I run
simultaneously, specifically compared
to a
BackgroundWorker
?
Please give me architecture of the program. (ED: I reckon just ignore this line.)