Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
QuestionHow can i generate random numbers between 1 to 10 Pin
Test27030729-May-07 18:58
Test27030729-May-07 18:58 
AnswerRe: How can i generate random numbers between 1 to 10 Pin
Christian Graus29-May-07 19:15
protectorChristian Graus29-May-07 19:15 
AnswerRe: How can i generate random numbers between 1 to 10 Pin
Robert Rohde29-May-07 20:50
Robert Rohde29-May-07 20:50 
GeneralRe: How can i generate random numbers between 1 to 10 Pin
Test27030729-May-07 21:38
Test27030729-May-07 21:38 
Questionthreading Pin
vibhas198229-May-07 18:57
vibhas198229-May-07 18:57 
AnswerRe: threading Pin
Guffa29-May-07 18:59
Guffa29-May-07 18:59 
AnswerRe: threading Pin
Christian Graus29-May-07 19:31
protectorChristian Graus29-May-07 19:31 
AnswerRe: threading Pin
Manoj Kumar Rai29-May-07 19:49
professionalManoj Kumar Rai29-May-07 19:49 
Hi,

To get this implemented you need to have a smart design.

You can implement somthing like:

Suppose thread #2 is waiting for thread #1 to finish the job, and you want thread #2 to do somting while its waiting for thread #1.

In thread #2 implementation you can do the following:

while (true) // this is the wait loop for the thread #2
{
//check if thread #1 has completed its job
if (yes)
exit from this wait loop.
else
perform the task you want thread #2 to do, while waiting.

//Sleep for say 0 so that others thread gets quantum
}



Manoj
Never Gives up

GeneralRe: threading Pin
vibhas198230-May-07 1:27
vibhas198230-May-07 1:27 
AnswerRe: threading Pin
Manoj Kumar Rai29-May-07 19:51
professionalManoj Kumar Rai29-May-07 19:51 
GeneralRe: threading Pin
Christian Graus29-May-07 20:00
protectorChristian Graus29-May-07 20:00 
GeneralRe: threading Pin
Manoj Kumar Rai29-May-07 20:08
professionalManoj Kumar Rai29-May-07 20:08 
AnswerRe: threading Pin
leppie30-May-07 5:00
leppie30-May-07 5:00 
QuestionHow to print exactly on a standard paper form ? Pin
jamesjk29-May-07 18:01
jamesjk29-May-07 18:01 
Questionstoring dynamic controls on post back Pin
tauras8129-May-07 17:49
tauras8129-May-07 17:49 
AnswerRe: storing dynamic controls on post back Pin
Christian Graus29-May-07 18:23
protectorChristian Graus29-May-07 18:23 
QuestionProject Build Help Pin
Aish-t29-May-07 17:01
Aish-t29-May-07 17:01 
AnswerRe: Project Build Help Pin
Aish-t30-May-07 14:57
Aish-t30-May-07 14:57 
QuestionUsing escape sequence characters in project string resources Pin
jozsurf29-May-07 15:37
jozsurf29-May-07 15:37 
AnswerRe: Using escape sequence characters in project string resources Pin
Christian Graus29-May-07 16:00
protectorChristian Graus29-May-07 16:00 
GeneralRe: Using escape sequence characters in project string resources Pin
jozsurf29-May-07 16:04
jozsurf29-May-07 16:04 
GeneralRe: Using escape sequence characters in project string resources Pin
snorkie29-May-07 16:41
professionalsnorkie29-May-07 16:41 
GeneralRe: Using escape sequence characters in project string resources Pin
jozsurf29-May-07 16:57
jozsurf29-May-07 16:57 
GeneralRe: Using escape sequence characters in project string resources Pin
snorkie30-May-07 1:43
professionalsnorkie30-May-07 1:43 
GeneralRe: Using escape sequence characters in project string resources Pin
jozsurf30-May-07 14:54
jozsurf30-May-07 14:54 

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.