distributed

MPI_SEND stops working after MPI_BARRIER

筅森魡賤 提交于 2019-12-01 10:52:05
I'm building a distributed web server in C/MPI and it seems like point-to-point communication completely stops working after the first MPI_BARRIER in my code. Standard C code works after the barrier, so I know that each of the threads makes it through the barrier. Point-to-point communication also works just fine before the barrier. However, when I copy-paste the same code that worked the line before the barrier into the line after the barrier it stops working entirely. The SEND will just wait forever. When I try using an ISEND instead, it makes it through the line, but the message is never

MPI_SEND stops working after MPI_BARRIER

走远了吗. 提交于 2019-12-01 07:48:55
问题 I'm building a distributed web server in C/MPI and it seems like point-to-point communication completely stops working after the first MPI_BARRIER in my code. Standard C code works after the barrier, so I know that each of the threads makes it through the barrier. Point-to-point communication also works just fine before the barrier. However, when I copy-paste the same code that worked the line before the barrier into the line after the barrier it stops working entirely. The SEND will just

Mutex Stored Procedure

半城伤御伤魂 提交于 2019-12-01 06:50:20
问题 I want to create some distributed mutual exclusion using a database table. It would be nice to have the following interface on a stored procedure: Wait(uniqueidentifier) I was originally thinking of implementing this by having a table of unique identifiers. A call to the procedure would wait until the unique identifier does not exist in the table. However, I'm not sure how I would make the calling thread wake up when the specified unique identifier was removed from the table. Any ideas? If

How to correlate log events in distributed Vertx system

守給你的承諾、 提交于 2019-12-01 05:48:26
while doing logs in the multiple module of vertx, it is a basic requirement that we should be able to correlate all the logs for a single request. as vertx being asynchronous what will be the best place to keep logid, conversationid, eventid. any solution or patterns we can implement? In a thread based system, you current context is held by the current thread, thus MDC or any ThreadLocal would do. In an actor based system such as Vertx, your context is the message, thus you have to add a correlation ID to every message you send. For any handler/callback you have to pass it as method argument

How to correlate log events in distributed Vertx system

这一生的挚爱 提交于 2019-12-01 03:55:26
问题 while doing logs in the multiple module of vertx, it is a basic requirement that we should be able to correlate all the logs for a single request. as vertx being asynchronous what will be the best place to keep logid, conversationid, eventid. any solution or patterns we can implement? 回答1: In a thread based system, you current context is held by the current thread, thus MDC or any ThreadLocal would do. In an actor based system such as Vertx, your context is the message, thus you have to add a

Distributed system design using only C

给你一囗甜甜゛ 提交于 2019-12-01 00:58:18
I have the work of implementing a distributed system of nodes (like p2p nodes) each of these nodes (lets say A,B,C and D) perform certain functions and need to interact with each other for various operations such as synchronize operations and other things like 15 A nodes interact with a group of 5 B nodes to get into the least loaded node's queue and get a token number and thereafter wait for C to redirect them to a free node D and so on. I am a bit lost as to how should i go about the design: The protocol that i have thought of is to encapsulate a struct of the type of operation and other

What is event-driven programming? [closed]

不问归期 提交于 2019-11-30 22:29:06
What is event-driven programming and has event-driven programming anything to do with threading? I came to this question reading about servers and how they handle user requests and manage data. If user sends request, server begins to process data and writes the state in a table. Why is that so? Does server stop processing data for that user and start to process data for another user or processing for every user is run in a different thread (multithread server)? Event driven programming != Threaded programming, but they can (and should) overlap. Threaded programming is used when multiple

Starting remote processes in a Windows network

心不动则不痛 提交于 2019-11-30 20:36:06
I have several slave machines and a master machine which together run a distributed application. Processes on each slave machine have to have a GUI and network access (I think it would be called an interactive process then). For ease of use it would be nice if the master machine could start/stop the processes on those slave machines. My first idea was to use WMI and the Win32_Process class to start a remote process but upon further investigation it was reveiled that processes started this way are non-interactive and isolated, and thus cannot have any GUI. A note says that one can use Win32

Distributed system design using only C

偶尔善良 提交于 2019-11-30 19:02:07
问题 I have the work of implementing a distributed system of nodes (like p2p nodes) each of these nodes (lets say A,B,C and D) perform certain functions and need to interact with each other for various operations such as synchronize operations and other things like 15 A nodes interact with a group of 5 B nodes to get into the least loaded node's queue and get a token number and thereafter wait for C to redirect them to a free node D and so on. I am a bit lost as to how should i go about the design

What is event-driven programming? [closed]

微笑、不失礼 提交于 2019-11-30 18:05:54
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . What is event-driven programming and has event-driven programming anything to do with threading? I came to this question reading about servers and how they handle user requests and manage data. If user sends request, server begins to process data and writes the state in a table.