Click here to Skip to main content
15,914,217 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need Library for resume parsing Pin
Henry Minute13-Jan-09 6:08
Henry Minute13-Jan-09 6:08 
AnswerRe: Need Library for resume parsing Pin
Ben Fair13-Jan-09 6:29
Ben Fair13-Jan-09 6:29 
GeneralRe: Need Library for resume parsing Pin
Sudhir Mangla14-Jan-09 0:11
professionalSudhir Mangla14-Jan-09 0:11 
Questionescape sequences in C# Pin
lawrenceinba13-Jan-09 0:04
lawrenceinba13-Jan-09 0:04 
AnswerRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:10
SeMartens13-Jan-09 0:10 
GeneralRe: escape sequences in C# Pin
lawrenceinba13-Jan-09 0:15
lawrenceinba13-Jan-09 0:15 
GeneralRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:17
SeMartens13-Jan-09 0:17 
GeneralRe: escape sequences in C# Pin
lawrenceinba13-Jan-09 0:20
lawrenceinba13-Jan-09 0:20 
GeneralRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:26
SeMartens13-Jan-09 0:26 
GeneralRe: escape sequences in C# Pin
lawrenceinba13-Jan-09 0:51
lawrenceinba13-Jan-09 0:51 
GeneralRe: escape sequences in C# Pin
Guffa13-Jan-09 0:53
Guffa13-Jan-09 0:53 
GeneralRe: escape sequences in C# Pin
S. Senthil Kumar13-Jan-09 0:56
S. Senthil Kumar13-Jan-09 0:56 
GeneralThreads and random() Pin
gudrunkr13-Jan-09 0:01
gudrunkr13-Jan-09 0:01 
GeneralRe: Threads and random() Pin
SeMartens13-Jan-09 0:06
SeMartens13-Jan-09 0:06 
GeneralRe: Threads and random() Pin
gudrunkr13-Jan-09 0:13
gudrunkr13-Jan-09 0:13 
GeneralRe: Threads and random() Pin
SeMartens13-Jan-09 0:15
SeMartens13-Jan-09 0:15 
GeneralRe: Threads and random() Pin
S. Senthil Kumar13-Jan-09 1:04
S. Senthil Kumar13-Jan-09 1:04 
Do you know why it didn't work first?

The Random class uses the current time as the "seed" for generating random numbers. Because you created two instances, one for each thread, and the two threads started running in parallel right away, both of them got the same seed and therefore generated the same sequence of random numbers.

BTW, the MSDN doc says that instance methods on the Random class are not thread safe - you might have to look out for that.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Home Page |My Blog | My Articles | My Flickr | WinMacro

QuestionQuestion on SqlDataReader[string name] Pin
Dewald12-Jan-09 23:08
Dewald12-Jan-09 23:08 
AnswerRe: Question on SqlDataReader[string name] Pin
SeMartens12-Jan-09 23:14
SeMartens12-Jan-09 23:14 
AnswerRe: Question on SqlDataReader[string name] Pin
Wendelius12-Jan-09 23:35
mentorWendelius12-Jan-09 23:35 
GeneralRe: Question on SqlDataReader[string name] Pin
Dewald12-Jan-09 23:55
Dewald12-Jan-09 23:55 
GeneralRe: Question on SqlDataReader[string name] Pin
Wendelius13-Jan-09 0:02
mentorWendelius13-Jan-09 0:02 
Questionsaving image in image folder using c# Pin
sandhya1412-Jan-09 23:00
sandhya1412-Jan-09 23:00 
AnswerRe: saving image in image folder using c# Pin
musefan12-Jan-09 23:06
musefan12-Jan-09 23:06 
GeneralRe: saving image in image folder using c# Pin
sandhya1414-Jan-09 18:11
sandhya1414-Jan-09 18:11 

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.