16,022,413 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Tirmit (Top 13 by date)
Tirmit
27-Apr-11 14:57pm
View
or if simplier I press a start button there is a class with the body of a thread ,thread works and then stops,cause there is a sleep method in his body,then when timer elapses it should wake up)
Tirmit
27-Apr-11 14:53pm
View
nevermind it doesn't work) I start 5 threads from my form,each thread is a philosopher ,
the problem is that timer is created inside my thread ,cause there is a method that should be called when time is elapsed...
may be it's better to create a list of 5 threads with timers ,so that when i need it ,I will start a the thread with a time,calling it with the help of delegate,but how to get that it has elapsed and call the method that is in a class of a thread?
Tirmit
27-Apr-11 14:19pm
View
i also use Monitor in this programm but for other purposes,can i use it too?
Tirmit
27-Apr-11 14:06pm
View
can i make a *cheat* to stop timer before the method and to count down 10 ms for each itteration ,so that when it is about 0 ,I will stop the pause?
Tirmit
27-Apr-11 13:57pm
View
i just need one of my threads to wait for some time and if the timer elapses it should wake up
Tirmit
27-Apr-11 13:37pm
View
Can you tell me what number equals 1 second in SpinWait(x)?
Tirmit
27-Apr-11 13:31pm
View
cause it's the emulating of a dining philosophers algorythm and i have to regulate time of eating,thinking and blocks.
Tirmit
27-Apr-11 13:28pm
View
Yes,I am shure) but i start it from a thread which pauses.
Tirmit
27-Apr-11 13:17pm
View
so if I have 5 threads I have to create 5 threads for timers?
Tirmit
27-Apr-11 12:59pm
View
You mean that Thread.Sleep(x) doesn't influence on timer cause it has a separate thread?
Tirmit
27-Apr-11 4:21am
View
can I check in some way if the monitor entered or not?
Tirmit
27-Apr-11 3:04am
View
and how did they do this Monitor.TryEnter(right, ref lockedR); I mean ref lockedR ,I `ve got only the possibility to write "int milisec. Timeout"
Tirmit
27-Apr-11 2:59am
View
thx ,it helped me,but now i`ve got 1 exception sometimes:
cause 1 philosopher can take his fork of one fork of his two neighbour's.And from time to time the is exception in Monitor.Exit(fork[number]);
Show More