July 15th, 2013, 07:15 AM
Problems with threads
Hello everyone. Can you help me with creating threads and constructor. Here's what I need:
Can any kind soul show me how can I split this serial process in three parallel parts using threads and constructor.
var a,b:array [1..15] of integer; i:integer;
for i:=1 to 5 do
for i:=6 to 10 do
for i:=10 to 15 do
I need 3 threads, where each thread takes needed a[i] (from the main program) for its part, finds b[i] and gives it back to the main program where I can work with ready b[i]. It's just a simple example so can anyone show me how to create threads. No theory just code.
Please and thank you in advance
July 21st, 2013, 01:06 AM
You may want to check this article: