TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jaypee bacol
NA
67
0
Global/Public Variables in Multithreading
Dec 22 2009 10:29 PM
Hi Nikki,
My thread has a function with parameters -> Process_GIF_Creation(p_outputFilePath, pstrDT, intDir); These 3 parameters are declared globally/publicly. My concern is that the possibility of having a conflict/problem of using these 3 variables since I am using multiple thread. I have just read an article thru internet, please see below.
Link ->
http://www.codersource.net/csharp_tutorial_multithreading.html
"At first, if one wants to create a multi-threaded application an important point to be remembered is, a global variable, which is being accessed by different threads, can try to modify the same variable. This is a generic problem, which is solved using a mechanism called Synchronization of threads. Synchronization is nothing but the process of creating some set of rules to operate data or resources."
Base in my requirement, I need to use scychronization of threads? Please advise me which is recommended.
Thanks,
Jaypee
Reply
Answers (
5
)
how to set min width and height of browser window in silverlight
How to lock aspect ratio for Grid element (make it square)