The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: James Ladd on May 22, 2005, 05:18:15 AM

Title: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: James Ladd on May 22, 2005, 05:18:15 AM
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 (http://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 ?
Title: Re: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: James Ladd on May 24, 2005, 08:42:21 AM
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
Title: Re: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: Mark Jones on May 24, 2005, 05:55:43 PM
James, why are there are two CriticalSections when it appears that one could be used for
resource Pool synchronization?   :bdg  :bg
Title: Re: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: James Ladd on May 24, 2005, 08:40:37 PM
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
Title: Re: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: Mark Jones on May 25, 2005, 04:36:09 AM
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.
Title: Re: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: James Ladd on May 25, 2005, 08:54:07 AM
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 <-
Title: Re: FASt Utilities - A set of utility API's including thread safe pools ...
Post by: 0x401000 on November 25, 2008, 03:46:07 PM
bad link  :(