Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
Questionfiletypes Pin
dsl/fahk20-Jan-07 3:53
dsl/fahk20-Jan-07 3:53 
AnswerRe: filetypes Pin
Luc Pattyn20-Jan-07 4:01
sitebuilderLuc Pattyn20-Jan-07 4:01 
AnswerRe: filetypes Pin
David Domingues22-Jan-07 5:02
David Domingues22-Jan-07 5:02 
QuestionRead text file after uploaded Pin
ALAQUNAIBI20-Jan-07 2:11
ALAQUNAIBI20-Jan-07 2:11 
AnswerRe: Read text file after uploaded Pin
Christian Graus20-Jan-07 10:22
protectorChristian Graus20-Jan-07 10:22 
GeneralRe: Read text file after uploaded Pin
ALAQUNAIBI20-Jan-07 19:52
ALAQUNAIBI20-Jan-07 19:52 
GeneralRe: Read text file after uploaded Pin
Christian Graus20-Jan-07 21:43
protectorChristian Graus20-Jan-07 21:43 
QuestionRead-Write thread synchronization Pin
Den2Fly20-Jan-07 1:11
Den2Fly20-Jan-07 1:11 
Hello everybuddy,
I am a little confused about why reading and writing a resource concurrently may be unsafe in some scenarios as I explain:

1. Blocking multiple threads from writing a resource based on its current value (such as incrementing some number, or manipulating some collections) is logical and I have no problem with it.

2. Blocking multiple threads from setting a resource to some new value independent of its current value seems unnecessary in my opinion, I need some clarification by some friend here why such synchronization is required. (more details: while there is no guarantee that if we block at start of the write process, which thread enters the section first, then that should not be important in not-locking scenario, which thread completes actual write instructions first and the other overwrites it, so why should we lock?! ).

3. Blocking two threads that one is writing the resource and another is reading it, also seems unnecessary, again I need clarification. (More details: Again we don't know which thread enters the locked section first, so that should not be important in not-locking scenario if the reader thread reads the value before the write process completely takes place or after that).

Thank you so much for any help
- den2fly

---
"Art happens when you least expect it."

AnswerRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 1:38
sitebuilderLuc Pattyn20-Jan-07 1:38 
GeneralRe: Read-Write thread synchronization Pin
Den2Fly20-Jan-07 3:54
Den2Fly20-Jan-07 3:54 
GeneralRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 4:00
sitebuilderLuc Pattyn20-Jan-07 4:00 
GeneralRe: Read-Write thread synchronization Pin
Den2Fly20-Jan-07 4:37
Den2Fly20-Jan-07 4:37 
GeneralRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 5:15
sitebuilderLuc Pattyn20-Jan-07 5:15 
GeneralRe: Read-Write thread synchronization Pin
Den2Fly20-Jan-07 5:28
Den2Fly20-Jan-07 5:28 
Questionhow to access html document in C# appliication Pin
imshimshal19-Jan-07 23:00
imshimshal19-Jan-07 23:00 
AnswerRe: how to access html document in C# appliication Pin
Christian Graus19-Jan-07 23:14
protectorChristian Graus19-Jan-07 23:14 
QuestionHow can I make my C# .NET work on other computers Pin
Par Witch19-Jan-07 21:39
Par Witch19-Jan-07 21:39 
AnswerRe: How can I make my C# .NET work on other computers Pin
Christian Graus19-Jan-07 22:33
protectorChristian Graus19-Jan-07 22:33 
AnswerRe: How can I make my C# .NET work on other computers Pin
Mircea Puiu19-Jan-07 22:34
Mircea Puiu19-Jan-07 22:34 
GeneralRe: How can I make my C# .NET work on other computers Pin
Par Witch20-Jan-07 4:23
Par Witch20-Jan-07 4:23 
GeneralRe: How can I make my C# .NET work on other computers Pin
Mircea Puiu21-Jan-07 21:00
Mircea Puiu21-Jan-07 21:00 
GeneralRe: How can I make my C# .NET work on other computers Pin
Par Witch22-Jan-07 3:46
Par Witch22-Jan-07 3:46 
GeneralRe: How can I make my C# .NET work on other computers Pin
Mircea Puiu22-Jan-07 4:10
Mircea Puiu22-Jan-07 4:10 
QuestionReturning 3 value from function Pin
dabuskol19-Jan-07 20:06
dabuskol19-Jan-07 20:06 
AnswerRe: Returning 3 value from function Pin
Bassam Saoud19-Jan-07 21:35
Bassam Saoud19-Jan-07 21:35 

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.