JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
November 22, 2019, 08:54:16 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Problem when creating one JPPFClient for four threads  (Read 1439 times)

jaydatta

  • Guest
Problem when creating one JPPFClient for four threads
« on: September 07, 2012, 11:49:20 AM »

Hi Laurent,

In our application there are four threads, each of which using seperate JPPFCLIENT instance. I need to make it only one instance and pass it to four threads. Is it possible? Currently I tried it but it is not precessing the job submitted to client. Could you please clarify about this?

Regards,
Jaydatta
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2257
    • JPPF Web site
Re: Problem when creating one JPPFClient for four threads
« Reply #1 on: September 08, 2012, 11:20:39 AM »

Hi Jaydatta,

To have the ability to submit multiple jobs concurrently with a single JPPF client, you need to define a pool of connections to the server with that client.
This is defined in the client's configuration file, as illustrated in the following examples:

With server discovery enabled:
Code: [Select]
jppf.discovery.enabled = true
#define a pool of 4 connections for discovered drivers
jppf.pool.size=4

With server discovery disabled:
Code: [Select]
jppf.discovery.enabled = false
# configure connections explicitely
jppf.drivers = myDriver
#define a pool of 4 connections for the configured drivers
myDriver.jppf.pool.size=4

When there is a single server connection, only one job at a time can be submmitted. The other jobs will be waiting in the client's queue and be sent only when the previous job has finished executing.

I hope this clarifies.

-Laurent
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads