[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Concept and Architecture Guide Help  XML
Forum Index -> General Go to Page: Previous  1, 2
Author Message
qhimqq

neo

Joined: 08/08/2008 21:48:10
Messages: 9
Location: Champaign-Urbana IL
Offline

Thanks for the tip.

Question:
Lets say I have four servers running in permanent-store mode, all with the same data directory and node0 is active and ten clients connected. If all clients asked for the same shared memory to read at the same time would the clients receive the data one at a time? The passive servers are not utilized in a situation where the read may take 5 seconds for each client? It seems to me passive servers are basically dead to the clients unless there is a network connection failure to the active server.


Thank you!

Undergraduate Student in Math/Computer Science at UIUC class 2010.
[WWW] [Yahoo!] aim icon
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

They would receive it in parallel from the active server - yes the passive's do not participate in these transactions.
[WWW]
qhimqq

neo

Joined: 08/08/2008 21:48:10
Messages: 9
Location: Champaign-Urbana IL
Offline

Can you please explain how it does it in parallel? Since the server runs as one JVM I don't see how the JVM can concurrently transmit to each client.

I'm a system programming beginner. I do know that a processor can only run one thread at a time. The process in this case would be the JVM. My guess was that the server would create another thread and the processor would give one thread a time slice then switch to another thread for a time slice, etc. How would the server JVM transmit with many cores/processors available?

Thanks.

Undergraduate Student in Math/Computer Science at UIUC class 2010.
[WWW] [Yahoo!] aim icon
orion

jedi

Joined: 06/12/2007 14:43:27
Messages: 108
Offline

The number of threads that can run (actually) concurrently is determined by the number of processors/cores your hardware has.

Want to post to this forum? Please join the Terracotta community: Sign up
[WWW]
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

In addition, processors are orders of magnitude faster than I/O - so it is very easy for a processor to send data to more than one client "at the same time" - while in reality it doesn't send the data to each node at exactly the same time it is in effect parallel due to the ability of the processor to do many things "at the same time" compared to the time of I/O.

When multiple processors are in play then multiple threads can run concurrently - but of course there is the system bus, the network card and so on that runs serially.
[WWW]
 
Forum Index -> General Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7 © JForum Team