-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
Im trying to write some kind of multi protocol bot (jabber/irc) that would read messages from fifo file (one liners mostly) and then send them to irc channel and jabber contacts. So far, I managed to create two factories to connect to jabber and irc, and they seem to be working.
However, I've…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I create a fifo:
mkfifo tofetch
I run this python code:
fetchlistfile = file("tofetch", "r")
while 1:
nextfetch = fetchlistfile.readline()
print nextfetch
It stalls on readline, as I would hope. I run:
echo "test" > tofetch
And my program doesn't stall anymore. It reads the line…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have a bash script which wants to do some work in parallel, I did this by putting each job in an subshell which is run in the background. While the number of job running simultaneously should under some limit, I achieve this by first put some lines in a FIFO, then just before forking the subshell…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
As titled. Is there an strategy/implementation in Apache to prioritize request's importance to process one request before another.
Example is in the case of PNG-interlace the most significant data (overall image view) are loaded and displayed while the rest is being loaded.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
As per a suggestion on stackoverflow, to compare IPC on a single machine using
a) sockets (TCP) on localhost to localhost
b) using FIFOs
(between Java and C)
To answer (a), I used netcat to gauge transfer speed (91 MBytes/sec)[1]
(b) Q: How can I test FIFO write speed using socat?
My…
>>> More