Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
GeneralRe: work with a-GPS Pin
Saksida Bojan28-Jan-10 8:00
Saksida Bojan28-Jan-10 8:00 
GeneralRe: work with a-GPS Pin
Std_Net28-Jan-10 11:15
Std_Net28-Jan-10 11:15 
GeneralRe: work with a-GPS Pin
Saksida Bojan28-Jan-10 18:43
Saksida Bojan28-Jan-10 18:43 
GeneralRe: work with a-GPS Pin
Std_Net29-Jan-10 3:24
Std_Net29-Jan-10 3:24 
AnswerRe: work with a-GPS Pin
Std_Net29-Jan-10 5:48
Std_Net29-Jan-10 5:48 
Questionmulti-threading in c# Pin
lord_laurent_r28-Jan-10 6:31
lord_laurent_r28-Jan-10 6:31 
AnswerRe: multi-threading in c# Pin
Luc Pattyn28-Jan-10 7:36
sitebuilderLuc Pattyn28-Jan-10 7:36 
GeneralRe: multi-threading in c# Pin
lord_laurent_r30-Jan-10 20:21
lord_laurent_r30-Jan-10 20:21 
Hi,
Thank your for your answer.
The type of the devices and their functions and how many devices have no importance. The goal of my application is to test an embedded board. So the board have many device depending of the board and different type of devices. You can think that we have between 1 to 5 differents devices. But my application have a low interface for each type of devices and so handle the access to the device by a same interface to have an abstraction of the type of device to the upper level (of course implementation is different).
My problem is at the higher level.
For my test I send message through a device (in my case but you can abstract this problem with a network area where we need to send message to another application). The message received at the other side is read and returned by the same link that as been recieved. When the message is coming back to my application I check it to control that have no corruption in the data and so report the information into a log file and an window of statistic.
This is made in parallel and we have no limit of time i.e. it can be run 1h, 10h, 1 day. The user run the test and stop it by press a button. We can assume any idea of the time that have the board to take to return the message to the application, this is depending of the device and the runtime of the onboard side.Maybe is never returned in case of problem in the board side (no more memory, busy for a moment). This is the reason of we have a thread to send and one to read and the statistic of the number sending/recieved.
My first conception is as follow:
1 thread by devices for sending message
1 thread by devices to wait/read message received
1 thread to log and check message recieved to a file/window report.

The goal is to have an independant thread for each output and input. We want to send message in continue through each output.
I use the timer and timer delegate for the thread. At first I use a Thread object but this is not precise of when he run. With the Timer, we can ask it to wakeup at every x ms (e.g. each 100ms) to send a message. So I see that the Timer work with a ThreadPool.
What do you suggest otherwise that the service ?
GeneralRe: multi-threading in c# Pin
Luc Pattyn31-Jan-10 2:39
sitebuilderLuc Pattyn31-Jan-10 2:39 
GeneralRe: multi-threading in c# Pin
lord_laurent_r31-Jan-10 20:23
lord_laurent_r31-Jan-10 20:23 
GeneralRe: multi-threading in c# Pin
Luc Pattyn1-Feb-10 2:17
sitebuilderLuc Pattyn1-Feb-10 2:17 
GeneralRe: multi-threading in c# Pin
lord_laurent_r1-Feb-10 2:37
lord_laurent_r1-Feb-10 2:37 
GeneralRe: multi-threading in c# Pin
Luc Pattyn1-Feb-10 2:52
sitebuilderLuc Pattyn1-Feb-10 2:52 
GeneralRe: multi-threading in c# Pin
lord_laurent_r1-Feb-10 5:01
lord_laurent_r1-Feb-10 5:01 
QuestionControl derived from Listbox not drawing properly Pin
Russell Jones28-Jan-10 6:19
Russell Jones28-Jan-10 6:19 
AnswerRe: Control derived from Listbox not drawing properly Pin
Saksida Bojan28-Jan-10 7:54
Saksida Bojan28-Jan-10 7:54 
GeneralRe: Control derived from Listbox not drawing properly Pin
Russell Jones28-Jan-10 8:23
Russell Jones28-Jan-10 8:23 
GeneralRe: Control derived from Listbox not drawing properly Pin
Saksida Bojan28-Jan-10 8:28
Saksida Bojan28-Jan-10 8:28 
QuestionHow to handle Enter key... Pin
mukundkallapur28-Jan-10 5:33
mukundkallapur28-Jan-10 5:33 
AnswerRe: How to handle Enter key... Pin
OriginalGriff28-Jan-10 5:43
mveOriginalGriff28-Jan-10 5:43 
AnswerRe: How to handle Enter key... Pin
Alex Manolescu28-Jan-10 8:16
Alex Manolescu28-Jan-10 8:16 
QuestionGetting info from database in gridview Pin
Bizcrack28-Jan-10 4:03
Bizcrack28-Jan-10 4:03 
AnswerRe: Getting info from database in gridview Pin
loyal ginger28-Jan-10 4:14
loyal ginger28-Jan-10 4:14 
AnswerRe: Getting info from database in gridview Pin
kevinnicol28-Jan-10 4:42
kevinnicol28-Jan-10 4:42 
GeneralRe: Getting info from database in gridview Pin
OriginalGriff28-Jan-10 5:12
mveOriginalGriff28-Jan-10 5: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.