JNI calling VC DLL problem

Discussion in 'Java' started by iason demiros, Dec 10, 2003.

  1. Hi everybody,

    if you could please advice:
    In a web-based app multiple users can query a VC DLL. The function
    that is called is a Search(char *string) function. The latter is
    exported by a DLL that fetches information from a hash database, gdbm.
    When using MonitorEnter, MonitorExit on JNI side it has very low
    performance but works. Else, it mixes results from different users, in
    a non-consistent manner. This is natural since the DLL is not
    multithreaded. The question is: Should I create a separate thread at
    the level of the Search() function? or when accessing the gdbm? should
    that be mutex? or semaphore? or compilation with Appartment Threaded?
    or having DATA MULTIPLE at linker level? Thanks in advance for your
    help.

    Jason Demiros
    iason demiros, Dec 10, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anushi
    Replies:
    5
    Views:
    8,710
  2. vasanth
    Replies:
    0
    Views:
    2,685
    vasanth
    Jan 25, 2005
  3. vasanth
    Replies:
    0
    Views:
    620
    vasanth
    Jan 25, 2005
  4. pcarr01
    Replies:
    3
    Views:
    662
    Gordon Beaton
    Feb 17, 2005
  5. Replies:
    8
    Views:
    782
    Chris Uppal
    Oct 13, 2006
Loading...

Share This Page