Click here to Skip to main content
15,921,454 members
Home / Discussions / C#
   

C#

 
Questionhow to get index value in imagebutton gridview using .net with c# Pin
sugunavathysubramanian20-Mar-08 19:10
sugunavathysubramanian20-Mar-08 19:10 
GeneralDelegate problem Pin
MarkB77720-Mar-08 17:22
MarkB77720-Mar-08 17:22 
GeneralRe: Delegate problem Pin
Christian Graus20-Mar-08 18:54
protectorChristian Graus20-Mar-08 18:54 
GeneralRe: Delegate problem Pin
MarkB77720-Mar-08 19:41
MarkB77720-Mar-08 19:41 
GeneralRe: Delegate problem Pin
Christian Graus20-Mar-08 20:48
protectorChristian Graus20-Mar-08 20:48 
GeneralGeneric Collections and Interfaces (Returning a collection of interfaces) Pin
dfa_geko20-Mar-08 17:05
dfa_geko20-Mar-08 17:05 
GeneralRe: Generic Collections and Interfaces (Returning a collection of interfaces) Pin
Steve Echols20-Mar-08 19:04
Steve Echols20-Mar-08 19:04 
Generalthread priority Pin
George_George20-Mar-08 16:29
George_George20-Mar-08 16:29 
Hello everyone,


I am confused about the statement from the book Threading in C# about thread priority,

http://www.albahari.com/threading/

the confusing statement is, "The ideal solution is to have the real-time work and user interface in separate processes". Why the solution works and ideal?

The whole paragraph is,

--------------------
If the real-time application has a user interface, it can be undesirable to elevate the process priority because screen updates will be given excessive CPU time – slowing the entire computer, particularly if the UI is complex. (Although at the time of writing, the Internet telephony program Skype gets away with doing just this, perhaps because its UI is fairly simple). Lowering the main thread’s priority – in conjunction with raising the process’s priority – ensures the real-time thread doesn’t get preempted by screen redraws, but doesn’t prevent the computer from slowing, because the operating system will still allocate excessive CPU to the process as a whole. The ideal solution is to have the real-time work and user interface in separate processes (with different priorities), communicating via Remoting or shared memory. Shared memory requires P/Invoking
the Win32 API (web-search CreateFileMapping and MapViewOfFile).
--------------------


thanks in advance,
George
GeneralRe: thread priority Pin
Paul Conrad21-Mar-08 8:11
professionalPaul Conrad21-Mar-08 8:11 
GeneralRe: thread priority Pin
George_George21-Mar-08 21:16
George_George21-Mar-08 21:16 
GeneralRe: thread priority Pin
Paul Conrad22-Mar-08 5:23
professionalPaul Conrad22-Mar-08 5:23 
GeneralRe: thread priority Pin
George_George23-Mar-08 3:06
George_George23-Mar-08 3:06 
GeneralRe: thread priority Pin
Paul Conrad23-Mar-08 5:29
professionalPaul Conrad23-Mar-08 5:29 
GeneralRe: thread priority Pin
George_George23-Mar-08 19:37
George_George23-Mar-08 19:37 
GeneralRe: thread priority Pin
Paul Conrad24-Mar-08 4:25
professionalPaul Conrad24-Mar-08 4:25 
GeneralRe: thread priority Pin
George_George24-Mar-08 4:40
George_George24-Mar-08 4:40 
GeneralStrange stack trace Pin
Winkles20-Mar-08 15:56
Winkles20-Mar-08 15:56 
GeneralRe: Strange stack trace Pin
Guffa21-Mar-08 1:17
Guffa21-Mar-08 1:17 
GeneralRe: Strange stack trace Pin
Winkles21-Mar-08 6:21
Winkles21-Mar-08 6:21 
GeneralRe: Strange stack trace Pin
Winkles21-Mar-08 9:13
Winkles21-Mar-08 9:13 
Generalhelp with Databinding for visual studio .net in c # Pin
atonynh20-Mar-08 15:47
atonynh20-Mar-08 15:47 
GeneralRe: help with Databinding for visual studio .net in c # Pin
Christian Graus20-Mar-08 18:56
protectorChristian Graus20-Mar-08 18:56 
QuestionCan someone please tell me why the if Loop in my codes not working. Pin
ADTC#20-Mar-08 14:06
ADTC#20-Mar-08 14:06 
GeneralRe: Can someone please tell me why the if Loop in my codes not working. Pin
PIEBALDconsult20-Mar-08 15:14
mvePIEBALDconsult20-Mar-08 15:14 
Questionif condition not if loop (sorry for tht) Pin
ADTC#20-Mar-08 18:47
ADTC#20-Mar-08 18:47 

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.