FASt Utilities - A set of utility API's including thread safe pools ...

Started by James Ladd, May 22, 2005, 05:18:15 AM

Previous topic - Next topic

James Ladd

Attention: Part of FASt Server requires some tool/utility API's like a thread safe pool of resources.

I have put those utilities together into a package called FAStUtil. And its here: www.jamesladdcode.com/fast-1.0.0-rc1.zip
You will have to download the zip before you can open it and see the contents. You done need FASt Server to make use of
FAStUtil. Please let me know what you think.

There is a Thread Safe Pool but there will be more.

Rgs, striker.

ps - Any comments from downlaoders etc ?

James Ladd

Awwwe, isnt anyone going to ask why there are two CriticalSections when it appears that one could be used for
resource Pool  synchronisation ?

Rgs, striker

Mark Jones

James, why are there are two CriticalSections when it appears that one could be used for
resource Pool synchronization?   :bdg  :bg
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

James Ladd

Mark,

Wow, where did that question come from. Im glad you asked it.
The reason is, the resource pool is built to be thread safe but also, so that
threads putting a resource do not have to wait for threads taking a resource.
The only time a wait between a take and a put is necessary is when the take pool
is empty. This maximises parallelism.

Neat huh ?

rgs, striker

Mark Jones

Aaaaha! All "over my head" but sounds good. :)

I think your code is so complex, few can understand it... that is why you are getting so few comments.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

James Ladd

Mark,

QuoteI think your code is so complex, few can understand it... that is why you are getting so few comments

Do you really think it is complex ?

Im happy to make it "easier". Maybe you can suggest how ?

Rgs, striker.

EDIT: There is a new version of the utils available <-