in reply to Re^3: [threads] Open a file in one thread and allow others to write to it
in thread [threads] Open a file in one thread and allow others to write to it
Updated:
This is what happens when removing the sleep()'s:
1: The time is 1258377733.481062 1: The time is 1258377733.481164 1: The time is 1258377733.481337 1: The time is 1258377733.4 3: The time is 1258377733.473267 3: The time is 1258377733.473595 3: The time is 1258377733.473749 3: The time is 1258377733.473885 3: The time is 1258377733.474008 3: The time is 1258377733.474110 3: The time is 1258377733.474212 3: The time is 1258377733.474313
In high concurrency level, the problems appear.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: [threads] Open a file in one thread and allow others to write to it
by BrowserUk (Patriarch) on Nov 16, 2009 at 13:23 UTC | |
by gulden (Monk) on Nov 16, 2009 at 13:37 UTC | |
by BrowserUk (Patriarch) on Nov 16, 2009 at 13:56 UTC | |
|