> On 21 Jul 2016, at 11:51, Sergey Logichev <slogic...@yandex.ru> wrote:
>
> Could you share your code to see? The walking through file system is one of
> my interests. As I understood your program has graphic UI to visualize some
> properties. For me I only need to generate list of files in the directory
> tree.
Possibly — It isn’t self contained because it uses a thread pool management
library, and most of the ‘clever stuff’ is in that. The recursive traverser is
simple: each thread just counts the size of the files in a directory and hands
off any directories if finds to another thread from the pool to process later.
The results from each directory are accumulated by a special “totals” thread.
It really isn’t much more than the du routine in section 15.3.1 (Calculating
disk usage) in the Unicon book, with the salient difference that the recursive
call is replaced with code that hands the request off to another thread.
I have been talking with Jafar about contributing the thread pool manager to
the Unicon distribution. I’ll have to prod him to find out how that’s going.
To be fair, I’m sure that both he and Clint have a lot more pressing things to
do.
Regards
Don
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group