fifo

How to implement a FIFO queue that supports namespaces

I'm using the following approach to handle a FIFO queue based on Google App Engine db.Model (see this question). from google.appengine.ext import db from google.appengine.ext import webapp from google.appengine.ext.webapp import run_wsgi_app class QueueItem(db.Model): created = db.DateTimeProperty(required=True, auto_now_add=True) ...

Strategy for Caching Previous Searches (ASP.NET)

Hi Guys, I have an ASP.NET MVC 2 Web Application (.NET 4, C#), where user's can search for locations. The page is implemented with an auto-complete box, similar to many websites. (Google, YouTube, etc) Now, the AJAX call to the server results in a Stored Procedure call to the database. (whilst efficient, could result in a lot of round...

open() causes program termination

Hi, I use the following program to write to a fifo: #include <iostream> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> using namespace std; int main() { unlink("fifo1"); if (mkfifo("fifo1", 0666) != 0) { ...