Home » Archive

Articles in the Algorithms Category

Algorithms, C, Classical Languages & Tools, Programming »

[24 Oct 2009 | No Comment | ]

Introduction
Though all of the programming languages enhanced to provide basic date, time and calendar calculations, writing hard logic for a simple requirements such as calander improves our programming skill. Let us consider about calculating day of a week for a given date and calender for a given month in C language. This is for helping learners of C language.

Algorithms, Java, Programming »

[24 Oct 2009 | No Comment | ]

The Producer-Consumer problem is the traditional one to explain the concept of multitasking with shared memory access in operating systems. This program demonstrates how a shared memory is being accessed by two different threads which run concurrently through an Applet. The producer thread continuously produces an item (here it generates a random number) and inserts into the stockpile (here it is an array limited in size), until space exists. The other thread named consumer, consumes an item (here it simply removes the item from the array). If there is no …

Get Adobe Flash playerPlugin by wpburn.com wordpress themes