CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2019
    Posts
    59

    running processes in library

    hi,
    my console program calls a c++ library function which does IO data exchange?. best way to optimize the throughput?.
    Last edited by @EE@; September 4th, 2022 at 12:48 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,302

    Re: running processes in library

    You should use worker thread(s) and move the code to communicate with IO in there.
    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2019
    Posts
    59

    Re: running processes in library

    it is an imported library function that communicates with IO and have no source for it. Include the library function call inside a worker std::thread and wait till it is done?.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,302

    Re: running processes in library

    I have no idea about this "imported library function" nor know I how it works. Thus I cannot say more about it. Try to find some docs about this function and its using.
    Victor Nijegorodov

  5. #5
    Join Date
    Aug 2019
    Posts
    59

    Re: running processes in library

    what i liked to verify was weather to use the actual code or its library call inside a thread should be the same. code is code, it does not matter if it is a library call. Just place it in inside a thread and execute it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured