Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading Xml to and fro Pin
RaviRanjanKr13-Dec-10 6:05
professionalRaviRanjanKr13-Dec-10 6:05 
GeneralRe: Reading Xml to and fro Pin
squerley13-Dec-10 6:25
squerley13-Dec-10 6:25 
GeneralRe: Reading Xml to and fro Pin
squerley13-Dec-10 6:13
squerley13-Dec-10 6:13 
GeneralRe: Reading Xml to and fro Pin
RaviRanjanKr13-Dec-10 6:19
professionalRaviRanjanKr13-Dec-10 6:19 
GeneralRe: Reading Xml to and fro Pin
ShilpaKumari13-Dec-10 6:28
ShilpaKumari13-Dec-10 6:28 
GeneralRe: Reading Xml to and fro [modified] Pin
squerley13-Dec-10 6:37
squerley13-Dec-10 6:37 
QuestionCPU jumps from 16% to 78% Pin
Jassim Rahma13-Dec-10 2:47
Jassim Rahma13-Dec-10 2:47 
AnswerRe: CPU jumps from 16% to 78% Pin
Luc Pattyn13-Dec-10 3:16
sitebuilderLuc Pattyn13-Dec-10 3:16 
is your code and the database running on the same machine?
how many cores are there?
what is inside the stored procedure?
how many different values are you sending to lblTimer per second? (or how long is the SMS table and how long does your code actually run?

if you don't have polling loops, and if you have chosen good algorithms, CPU activity is OK, it just says the processor is working for you.

if the database is elsewhere or the SP is light, then your code is mostly switching threads to update some labels, i.e. your GUI is costing a lot then.

[ADDED]
1. you're not going to have a display with a permanent status update on a server, are you?

2. when update frequency is high, a better approach is to store, not display, the status in some variable(s), and have the GUI update itself (with a Windows.Forms.Timer) a few times a second. When the variable is a 4-byte int or smaller, no need to have synchronization logic (such as locks) at all.
[/ADDED]

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: CPU jumps from 16% to 78% Pin
Jassim Rahma13-Dec-10 3:27
Jassim Rahma13-Dec-10 3:27 
QuestionRe: CPU jumps from 16% to 78% Pin
Luc Pattyn13-Dec-10 3:34
sitebuilderLuc Pattyn13-Dec-10 3:34 
GeneralRe: CPU jumps from 16% to 78% Pin
Dave Kreskowiak13-Dec-10 8:54
mveDave Kreskowiak13-Dec-10 8:54 
AnswerRe: CPU jumps from 16% to 78% Pin
fjdiewornncalwe13-Dec-10 8:32
professionalfjdiewornncalwe13-Dec-10 8:32 
GeneralRe: CPU jumps from 16% to 78% Pin
Jassim Rahma14-Dec-10 2:32
Jassim Rahma14-Dec-10 2:32 
QuestionWindow open and close effect with c# in windows application Pin
Tridip Bhattacharjee13-Dec-10 2:13
professionalTridip Bhattacharjee13-Dec-10 2:13 
AnswerRe: Window open and close effect with c# in windows application Pin
PIEBALDconsult13-Dec-10 2:18
mvePIEBALDconsult13-Dec-10 2:18 
GeneralRe: Window open and close effect with c# in windows application Pin
Tridip Bhattacharjee13-Dec-10 19:20
professionalTridip Bhattacharjee13-Dec-10 19:20 
GeneralRe: Window open and close effect with c# in windows application Pin
SilimSayo17-May-11 6:56
SilimSayo17-May-11 6:56 
Questionhelp!how can i get the monitor's status Pin
scoket12-Dec-10 22:35
scoket12-Dec-10 22:35 
AnswerRe: help!how can i get the monitor's status Pin
Prerak Patel12-Dec-10 23:01
professionalPrerak Patel12-Dec-10 23:01 
GeneralRe: help!how can i get the monitor's status Pin
scoket13-Dec-10 15:05
scoket13-Dec-10 15:05 
AnswerRe: help!how can i get the monitor's status Pin
PIEBALDconsult13-Dec-10 2:19
mvePIEBALDconsult13-Dec-10 2:19 
GeneralRe: help!how can i get the monitor's status Pin
OriginalGriff13-Dec-10 2:29
mveOriginalGriff13-Dec-10 2:29 
GeneralRe: help!how can i get the monitor's status Pin
Roger Wright14-Dec-10 18:41
professionalRoger Wright14-Dec-10 18:41 
QuestionExcel receive live data from DDE .How to retrieve those values Pin
mladenovic12-Dec-10 22:19
mladenovic12-Dec-10 22:19 
QuestionHELP, what're the errors!!! ERROR - unsafe Pin
Eddy Ho 88 from Singapore12-Dec-10 15:15
Eddy Ho 88 from Singapore12-Dec-10 15:15 

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.