EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to work with Worker threads to do a lengthy job (ref_gen_timeouts.html)

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
Posted: 02/29/2016 11:53:13
by pushpak laddha (Basic support level)
Joined: 02/29/2016
Posts: 1

To make your code fast, don't perform lengthy operations (especially network operations) from the callback. Create a worker thread, that will do the job. When you need to write the data, pass this data to the worker thread and return. The worker thread will send the data to the remote side. When the file is opened, cache some of it's data with help of the worker thread and return this data from reading callback.

Any sample code..



Topic viewed 864 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!