Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8660453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:15:24+00:00 2026-06-12T16:15:24+00:00

I have a problem in a high performance environment which can be described in

  • 0

I have a problem in a high performance environment which can be described in prose as follows:

I have an external Java API which makes a call to an FPGA card with 64 resources on it. I need a mechanism to safely share a subset of those resources between hundreds of threads in an application. Each resource should be considered not thread safe.

So I need a ResourcePool with a method update() which then calls resource.update().

I think this is a fairly common idiom but I am having difficulty fitting my head into the Java concepts. I want to say have 4 of the resources in one ResourcePool. Each should i guess live in their own Thread (so a threadpool would be needed).

How would i implement this so that i could log an error and carry on when all 4 of the resources are in use?

Hope this makes sense!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:15:25+00:00Added an answer on June 12, 2026 at 4:15 pm

    For the BlockingQueue, it very userful for the producer-consumer pattern, you must renew or add it after this resource by userd, but maybe the initialization of resource is poor perfomance. And it`s a blocking queue, if you want to deal some information when the pool is empty or full, Queue is ok for this.

    For the lock, if these resources was initialized and not change after, add lock to these resources is better.

    This is my opinion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a large high-performance software system which consists of multiple interacting Java processes
Have you any problems using it on high concurrency environment? It's really works as
I have developed a TCP server according to your advises: High performance TCP server
We have a very high performance multitasking, near real-time C# application. This performance was
I'm working on a video game which requires high performance so I'm trying to
I'm looking for an elegant, high performance solution to the following problem. There are
I have a problem with a large database I am working with which resides
the problem is as follows: I have got a rendered bitmap in a byte
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with my query on C, I’m using the oci8 driver. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.