Click here to Skip to main content
15,914,016 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Disable form not fast enough Pin
Didier Cauberghe23-May-10 3:31
Didier Cauberghe23-May-10 3:31 
GeneralRe: Disable form not fast enough Pin
DaveAuld23-May-10 3:35
professionalDaveAuld23-May-10 3:35 
GeneralRe: Disable form not fast enough Pin
Didier Cauberghe23-May-10 3:42
Didier Cauberghe23-May-10 3:42 
QuestionWindows Service Functionality Pin
VikashGohil22-May-10 20:07
VikashGohil22-May-10 20:07 
AnswerRe: Windows Service Functionality Pin
DaveAuld22-May-10 23:46
professionalDaveAuld22-May-10 23:46 
GeneralRe: Windows Service Functionality Pin
VikashGohil23-May-10 20:26
VikashGohil23-May-10 20:26 
QuestionBest data structure in VB .NET 4.0 ?! Pin
Agarwaen5922-May-10 8:03
Agarwaen5922-May-10 8:03 
AnswerRe: Best data structure in VB .NET 4.0 ?! Pin
Luc Pattyn22-May-10 8:42
sitebuilderLuc Pattyn22-May-10 8:42 
you can apply parallelism easily if your data needs are limited to:
- reading global data (i.e. across all threads) that no thread will be writing to;
- only writing data that is local to the thread.

So you could easily do a global dictionary, created beforehand, and read by all threads; each thread creating its own collection of results; and when they all finish, maybe join all those results.

If your app doesn't satisfy those restrictions, you need thread synchronization, such as locks, in order to avoid one thread reading data at the very moment it is getting modified by another thread (and for most data structures, a modification may temporarily cause an inconsistent, even an invalid, state).

From your (pretty abstract) data requirements I think you want to read data that is changing often, so you need the synchronization. I might have misunderstood though, you'll have to decide for yourself.

The Parallel goodies .NET 4.0 introduced don't provide data access synchronization for you; all they do is launch a number of threads, and wait for them to join. That is thread synchronization, not data synchronization.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

QuestionCopy Excel Data into Access Database Table. Pin
jeshra27922-May-10 3:52
jeshra27922-May-10 3:52 
AnswerRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 4:02
professionalDaveAuld22-May-10 4:02 
GeneralRe: Copy Excel Data into Access Database Table. Pin
Dalek Dave22-May-10 4:17
professionalDalek Dave22-May-10 4:17 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27922-May-10 4:51
jeshra27922-May-10 4:51 
GeneralRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 5:02
professionalDaveAuld22-May-10 5:02 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27922-May-10 5:40
jeshra27922-May-10 5:40 
GeneralRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 20:48
professionalDaveAuld22-May-10 20:48 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27923-May-10 18:53
jeshra27923-May-10 18:53 
QuestionCompare two scanned images! Pin
FeRtoll21-May-10 8:26
FeRtoll21-May-10 8:26 
AnswerRe: Compare two scanned images! Pin
Dave Kreskowiak21-May-10 9:15
mveDave Kreskowiak21-May-10 9:15 
GeneralRe: Compare two scanned images! Pin
FeRtoll21-May-10 11:42
FeRtoll21-May-10 11:42 
GeneralRe: Compare two scanned images! Pin
FeRtoll21-May-10 13:34
FeRtoll21-May-10 13:34 
GeneralRe: Compare two scanned images! Pin
Dave Kreskowiak22-May-10 14:45
mveDave Kreskowiak22-May-10 14:45 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 0:07
FeRtoll23-May-10 0:07 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 10:33
FeRtoll23-May-10 10:33 
GeneralRe: Compare two scanned images! Pin
Dave Kreskowiak23-May-10 18:08
mveDave Kreskowiak23-May-10 18:08 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 22:12
FeRtoll23-May-10 22:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.