132 reputation
6
bio website
location Jacksonville, FL
age 31
visits member for 1 year, 4 months
seen Oct 17 at 0:15
var sleeping = "edoc.ni.maerd.i";
var result = "";
foreach(var c in sleeping)
    result = c + result;
Console.Write(result);

Oct
17
awarded  Scholar
Oct
17
accepted Would this be a proper use of threading?
Oct
14
comment Ensure that a method of a class is called after every method call of the same class, how?
I would like to add to this and point out the Command Pattern, you can use this pattern with some interfaces to implement an AOP approach. This is geared towards C# but I am sure you could translate the knowledge fairly easy. cuttingedge.it/blogs/steven/pivot/entry.php?id=91
Oct
10
comment Can anyone suggest a project for me write to help me understand threading
Interesting, seems I setup this pattern without realizing it while creating a threaded windows service. Your description was perfect. Good one to know, this would almost be marked as an answer on my open question.
Oct
10
revised Would this be a proper use of threading?
added performance and wait points to better assist answerers
Oct
10
revised Would this be a proper use of threading?
added performance and wait points to better assist answerers
Oct
10
awarded  Commentator
Oct
10
comment Would this be a proper use of threading?
The data access is asyncable, I haven't actually created the guts yet but I planned on using it so I can provide maximum processing on each thread, this is correct right? Should my CPU be maxing out? I am just doing Console.WriteLine() 3000x, I am concerned this will block other services on the server. Would it make sense to limit them to like 10?
Oct
10
comment Would this be a proper use of threading?
@VictorVictis, the services do need to wait for commands though as I do not want another round kicked off till the first round finishes. I have that setup with the timer. The commands wait on the handlers and the handlers inside a command wait on each other as they are taken off the queue. My thought is each thread would process an item each and the thread pool would manage the creation and break down of the threads as they are needed. Does this make a difference?
Oct
9
comment Would this be a proper use of threading?
So, would using the Async/Await pattern be the correct approach for what I am doing? I'd prefer if multiple Commands could process at the same time, or at least let others process while others are working.
Oct
8
awarded  Editor
Oct
8
revised Would this be a proper use of threading?
deleted 307 characters in body
Oct
8
comment Would this be a proper use of threading?
Thank you, so would sticking with the async/await tasks would be better or are you speaking of another task. There are so many variations related to this realm its not always clear when to use what.
Oct
8
awarded  Student
Oct
8
asked Would this be a proper use of threading?
Sep
24
awarded  Autobiographer
Apr
18
comment Adding field to the class at runtime - design pattern
Not sure what language you are using, but if it is C# you could use a dynamic type which basically stores a KVP in a dictionary kinda like what you are doing on products and allows you to just tack on properties without having to directly add them to the collection as a collection. You will not have strong typing though. I know you asked for a design pattern but I don't feel you would need anything complex to use them. msdn.microsoft.com/en-us/magazine/gg598922.aspx
Jun
18
awarded  Supporter