On Asynchronous Programming

MSDN: Asynchronous operations are typically used to perform tasks that might take a long time to complete, such as opening large files, connecting to remote computers, or querying a database. An asynchronous operation executes in a thread separate from the main application thread. When an application calls methods to perform an operation asynchronously, the applicationContinue reading “On Asynchronous Programming”

Event-Programming: The Highway to Concurrency?

Yesterday I watched this talk by Ryan Dahl about node.js. node.js is a environment, based on Google’s v8 javascript engine, to build high-performance servers using the Javascript language. Here’s a simple hello world HTTP server: var sys = require(‘sys’),   http = require(‘http’); http.createServer(function (req, res) {  res.sendHeader(200,  {‘Content-Type’: ‘text/plain’});  res.sendBody(‘Hello World’);  res.finish(); }).listen(8000); You mayContinue reading “Event-Programming: The Highway to Concurrency?”