Skip to search.
PowerThreading · Richter/Wintellect Power Threading

Group Information

  • Members: 258
  • Category: Software
  • Founded: Jun 26, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
Messages 1013 - 1043 of 1043   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1013 Steven Taylor
sgtzz Offline Send Email
Apr 16, 2012
12:55 pm
Hi, I'm just feeling out whether this is a worthwhile thing to pursue. How big is the datastructure that a ReaderWriterGate implements? I'm considering...
1014 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 16, 2012
1:08 pm
Each ReaderWriterGate object has a 4-byte enum, Another 4-byte integer representing the number of readers, a reference to two Queue<T>s (one for readers & one...
1015 Steven Taylor
sgtzz Offline Send Email
Apr 16, 2012
5:54 pm
... I'll dig in and if I can make sense of it. ... If it is single threaded, can I have more than one instance of it inside the same .net assembly? I've got...
1016 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 16, 2012
6:12 pm
Can you have multiple instances of what? Your collection? Of course. Any of the types mentioned (ReaderWriterGate, OrderedBag, Dictionary)? Again, of course,...
1017 Steven Taylor
sgtzz Offline Send Email
Apr 17, 2012
2:50 pm
"COM supports single-, multi-, and free-threaded apartments which all treat data with different characteristics. You should really understand what COM ...
1018 Steven Taylor
sgtzz Offline Send Email
Apr 17, 2012
2:50 pm
Is it possible to set the affinity of an STA threaded COM component? Will the combination of the CLR + the OS be sensible on this? I haven't been able to find...
1019 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 17, 2012
2:58 pm
I don't know what you'd want to affinitize the COM STA thread. Normally, I'd recommend leaving this alone and let the OS schedule the thread as it sees fit. ...
1020 Steven Taylor
sgtzz Offline Send Email
Apr 17, 2012
5:19 pm
"And actually, there is a 1-to-1 relationship between OS threads and .NET threads." thanks for the clarification. I was reading a lot of noise around that. ...
1022 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 17, 2012
7:18 pm
http://www1.wintellect.com/Resources/Details/76 -- Jeffrey Richter (http://Wintellect.com/) From: PowerThreading@yahoogroups.com...
1023 Jiri Cincura
x2develop Offline Send Email
Apr 18, 2012
7:25 am
On Tue, Apr 17, 2012 at 9:18 PM, Jeffrey Richter ... Or you can use NuGet: http://nuget.org/packages/PowerThreading. ;) -- Jiri {x2} Cincura (x2develop.com...
1024 alex_gur2001 Offline Send Email Apr 18, 2012
2:28 pm
Hi, ... public class ConcurrentList<T>:IList<T> { private readonly List<T> _list; private OneManyResourceLock _rwLock; public ConcurrentList() { _list= new...
1025 alex_gur2001 Offline Send Email Apr 18, 2012
2:30 pm
Thank you....
1026 Steven Taylor
sgtzz Offline Send Email
Apr 21, 2012
1:40 pm
Hi, I found the idea of passing and casting state in a callback to be more verbose than I'd like for my use case. Is this closure idea a valid approach, or...
1027 Steven Taylor
sgtzz Offline Send Email
Apr 21, 2012
1:40 pm
I guess this overload answers the first question in terms of boiling the code down a bit further... m_gate.BeginRead((rel) => { // do stuff based on local...
1028 Steven Taylor
sgtzz Offline Send Email
Apr 21, 2012
1:40 pm
Hi, I think I've answered this one as I wrote the email... so if you've got a pool of resources (normally 8 items) that belong to a single parent (1000s of...
1029 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 21, 2012
2:00 pm
The closure is definitely a valid approach. It does allocation more memory so it has more overhead than passing/casting but many people (including me) will use...
1030 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 21, 2012
2:05 pm
Yes, I forgot about that overload, so you can even do this: }, m_gate.EndRead); AsyncState is NOT about debugging; it is about passing data from one thread to...
1031 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 21, 2012
2:12 pm
This is a tricky one. If you occasionally need to atomically manipulate all parents together, then you always need to obtain a gate on all parents. So, if you...
1032 Steven Taylor
sgtzz Offline Send Email
Apr 21, 2012
2:47 pm
Thanks very much for the reply... I'm thinking about using this scheme for the n portion of the idea when using ReaderWriterGate... given a list of identities...
1033 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 21, 2012
2:59 pm
Yes, this should work. I've not seen so many levels before but I've seen this kind of thing before. -- Jeffrey Richter (http://Wintellect.com/) From:...
1034 Nathaniel
nathanielmarler Offline Send Email
Apr 21, 2012
3:21 pm
Not sure what type(s) of resources you're trying to protect, but any chance you could make thread safe without locks? Immutable objects, user mode techniques? ...
1035 Steven Taylor
sgtzz Offline Send Email
Apr 21, 2012
4:03 pm
... yes... but only if you shut everything down and do update runs (or exclusive lock and an entire structure). That is for many scenarios... but once you are...
1036 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 21, 2012
4:07 pm
You're right, the best you can do is: g.BeginRead(null, r=> g.EndRead(r)); -- Jeffrey Richter (http://Wintellect.com/) From:...
1037 Steven Taylor
sgtzz Offline Send Email
Apr 23, 2012
1:29 pm
Hi, I just wondered if someone could take a quick look at this code and let me know why this "delegateAccumulator" isn't executing as expected. It's my first...
1038 Steven Taylor
sgtzz Offline Send Email
Apr 23, 2012
2:06 pm
thanks for posting the Eric Lippert link earlier. I think I've read this before, but this time I understood it more. ...
1039 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 23, 2012
2:34 pm
If you haven't done so, I'd suggest reading the threading chapters in my CLR via C# book as it answers these kind of questions in great detail. The short...
1040 Jeffrey Richter
jeffrey.richter Offline Send Email
Apr 23, 2012
2:59 pm
Hi all, I have posted a new version (April 20, 2012) of my Power Threading Library on the Wintellect web site today. To download it, go...
1041 d_finucane Offline Send Email Apr 24, 2012
1:56 pm
I would add to these reasons, another Jeffrey brings to light in his book, that aside from all that wasted memory you have set yourself up for some serious...
1042 Jiri Cincura
x2develop Offline Send Email
Apr 26, 2012
10:00 am
On Mon, Apr 23, 2012 at 4:34 PM, Jeffrey Richter ... And to make things worse, the memory is committed. -- Jiri {x2} Cincura (x2develop.com founder) ...
1043 dnyaoso Offline Send Email May 4, 2012
5:34 am
Hi Steven, delegateAccumulator = () => { return new ReaderWriterGateCallback(releaser => f2.Invoke(null)); }; That statement in the foreach loop redefines...
Messages 1013 - 1043 of 1043   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help