Community

Muti-Threaded Server on Mac OS X Answered

I've had an issue with two requests accessing the frDocument document (especially when either loading the image from memory or during the process command) at the same time.  I put a mutex in my application before pretty much touching anything in regards to the FREngine and it works fine but it is slow.

Is there any example Objective C code that shows how to have multiple threads interacting with the frDocument object?  The two samples provided don't seem to be designed to support multiple simultaneous requests.

Thanks!

[edit] I switched to using the engine object instead of the frDocument object and it explicitly states only a single engine object can be loaded per process.  If that is the case, how does FREngine handle threading?

Was this article helpful?

0 out of 0 found this helpful

Comments

5 comments

  • Avatar
    Permanently deleted user

    ABBYY FineReader Engine for Mac OS does not provide a thread-safe way to work with the Engine in multi-threaded scenarios. There currently are no plans to add this functionality to the Mac OS version of FineReader Engine.

    0
  • Avatar
    Permanently deleted user

    Does the Java on Linux implementation support multi-threading?

    0
  • Avatar
    Permanently deleted user

    No, currently only the Windows version of FineReader Engine provides such functionality.

    That said, unlike the Mac version, FineReader Engine for Linux provides a number of options for parallel processing, e.g. the BatchProcessor object, which allow to speed up processing by performing certain processing steps in parallel.

    0
  • Avatar
    Permanently deleted user

    Are there any concerns in running multiple separate applications that use ABBYY on the same Mac OS X machine that process images simultaneously?  I successfully stress tested running 4 separate applications (the test server we have has four cores) which significantly improved total performance since all cores were utilized.

    0
  • Avatar
    Permanently deleted user

    This scenario of using FineReader Engine is not standard so it wasn't tested. However according to the arcticle Help → API Reference → Functions → GetEngine Object Function it is possible to create and run the Engine object on a multi-processor system, but there can be only one Engine object in each process.

     

     

    0

Please sign in to leave a comment.