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 8087189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:41:41+00:00 2026-06-05T18:41:41+00:00

Given client = new XMemcachedClient(server, port); What happens if I have several thread doing

  • 0

Given

client = new XMemcachedClient(server, port);

What happens if I have several thread doing this:

object = client.get(key);

In the (quite empty) xmemcached javadoc I see no mention of synchronization.

  1. is MemcachedClient.get synchronized? if not, have I got to synchronize it myself?
  2. can calls to memcached be done in parallel, in order to avoid my threads to be blocked? Do I need to instanciate one MemcachedClient per thread or is the current code capable of this already?
  • 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-05T18:41:43+00:00Added an answer on June 5, 2026 at 6:41 pm

    XMemcachedClient can be used by many threads in paralel. There is not need to synchronize the calling to XMemcachedClient instance. Here’s a sample code how many threads can use single client.

    On the xmemcached page there’s a benchmark which show performance depending on number of threads that use single XMemcachedClient instance.

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

Sidebar

Related Questions

I have a whole bunch of files that my new client's given me, he
I'd like to know what happens given the following scenario using the .net client.
I've given a client several Office docs they will disseminate to their clients. They
I have a server-side webpy code like this: urls = ( '/home', 'homePage', '/clients/(.*)',
Think an iPhone-based email client. You have three 'states' with the same UI: New
Client is given a server's hostname, so that client can connect to the server
I am building an HTTP client based on the example on HTTP server given
Using ActiveRecord, I have an object, Client, that zero or more Users (i.e. via
I'm new to this forum and I have a sticky problem with the website
I have an RMI client that connects to some RMI server just to let

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.