Dining philosophers problem

  • by

1.0 Introduction

The dining philosophers problem was formulated by Edsger Dijkstra in 1965. The problem illustrates synchronization issues in systems made up of concurrent tasks. The objective of the problem is to have progress and avoid deadlock in systems. Also, the entities needing resources should get them in reasonable time and not face starvation of resources.… Read more

Simple Screen Recorder records only a black screen

  • by

1.0 Problem

Simple Screen Recorder program records only a blank black screen on Ubuntu Linux.

2.0 Solution

The problem is solved with the following steps.

  1. Close all programs.
  2. Log out.
  3. Start a fresh login procedure. Click on the user name.
  4. Before entering the password, find the gear icon in the bottom right corner of the screen.
Read more

Chromecast not connecting to Wifi

  • by

1.0 Problem

A change of Wifi network necessitated that the same be changed for a working chromecast device. When the chromecast was reconfigured using the Google Home app, it would not communicate with the new Wifi network. An error message was printed and the configuration session would end.… Read more

Program to generate a random password in C

  • by

1.0 Introduction

Passwords provide a level of security for digital assets. To be effective, passwords need to sufficiently long. random and chosen from a big underlying domain.In this post, we have a C-language program, that takes in number of characters in the password as input, and chooses a random password from printable ASCII characters.… Read more

C Programming Tutorial 5: Structures and Unions

  • by

1.0 Structures

A structure, in the C programming language, is a collection of variables for an entity. The variables are known as members of the structure and are located at consecutive memory locations. The size of the structure is the sum of sizes of the members plus any padding that might be placed by the system.… Read more

C Programming Tutorial 4: Pointers and Arrays

  • by

1.0 Introduction

A pointer variable holds the address of another variable. It is said to be "pointing" to that variable. For example,

int *ip;

defines a variable ip of type integer pointer. ip points to a variable of type integer. At the implementation level, it holds the address of a variable to type integer.Read more

C Programming Tutorial 3: Control Flow and Functions

  • by

1.0 Introduction

A C program comprises of global data and functions. A program must have a main function and the execution starts at the first statement in the main function. A function has local data and statements. The control flow deals with the order in which statements are executed by a program.… Read more

C Programming Tutorial 2: Data Types and Expressions

  • by

1.0 Introduction

Data is an important part of a program. In fact, programs are written so that data can be captured, processed, stored and presented to the user. The success of a program depends on how well data has been organized and used.… Read more