Hi All,
Im new to multithreading!!
I have created two files which access a database, each extracts a large amount of lines relating to a certain word and then processes each line.
As its a huge task im looking into multithreading.
However i have heard i must be careful to make sure that my variables arent used or changed by another thread.
I was thinking about using a variable which i can name acording to the thread id.
IE: Name$id
Or something...
Does anyone know how this would work or does anyone have a good idea on how to multithread?
Im lost on this!!
Kind regards
Nash (v. confused!!)
Im new to multithreading!!
I have created two files which access a database, each extracts a large amount of lines relating to a certain word and then processes each line.
As its a huge task im looking into multithreading.
However i have heard i must be careful to make sure that my variables arent used or changed by another thread.
I was thinking about using a variable which i can name acording to the thread id.
IE: Name$id
Or something...
Does anyone know how this would work or does anyone have a good idea on how to multithread?
Im lost on this!!
Kind regards
Nash (v. confused!!)