Subscribe for email updates

Get all updates to your inbox to stay tune.

Curve tracing programs - Draw sin(x) curve using Graphics programming in C

Learn how to draw curve tracing graphics programs in c language

Graphics programming in C

Learn how to write basic and advanced graphics programming in c language

Curve tracing programs - Draw Cos(x) curve using Graphics programming in C

Learn how to draw curve tracing graphics programs in c language

Make file tutorial

A step by step guide to learn how to write make file in Linux with examples

Tuesday, October 26, 2010

mixing threads and fork - what is RISK ?

Will update this topic soon.

stdout to a file in C

it is very Simple , I tried On AIX

FILE *fd1;
if( fd1 == NULL )
printf("Error in openng a file");
return -1;
printf("This is test message should go in /tmp/test.log file\n");
return 0;


What ever you print to stdout will go into a file.

Wednesday, October 13, 2010

why 4GB process Address Space ?

In 32 bit platform the the range of addresses are 0-(2^32-1)
i.e 0x00000000 to 0xFFFFFFFF

0xFFFFFFFF is nothing but 4GB
Each process can address 4GB of address space which is a virtual address space.
Out of which 1GB will be allocated for kernel use and rest 3GB is for user space use.

Tuesday, October 12, 2010

what happens when PageFault Occurs and behind CopyOnWrite

Nice article which explains what happens internally when Pagefault occurs and internals of "Copy-On-Write"

Unix IPCs in detail - short and sweet

Very nice articles. I like it.
Inter Process Communication - Part-1
Inter Process Communication- Part-2

Wednesday, September 15, 2010

cool articles

I have gone through few articles in developer works. They are reall cool. explained in short and sweet.

About SCSI:

About Network stack:

and many more.

and also there are many tips in the below site.

Thursday, July 15, 2010

TCP/IP Tutorial link - really good

Indian Rupee Symbol

Finally we got a symbol for Indian Rupee
Designed by Uday Kumar

Saturday, July 3, 2010

Socket Programming tuto links

Few cool links about sockets

Thursday, June 24, 2010

Printing Process Tree in AIX and Linus

AIX: Process tree basically lists the parent-child list of a given process.


# proctree 9437388
3473570 /usr/sbin/srcmstr
4391090 /usr/sbin/inetd
9437388 telnetd -

ps -ejH

793 793 793 ? 00:00:00 gdm-binary
909 793 793 ? 00:00:00 gdm-simple-slav
940 940 940 tty7 00:13:02 Xorg
1228 793 793 ? 00:00:00 gdm-session-wor
1497 1497 1497 ? 00:00:00 gnome-session
1534 1534 1534 ? 00:00:00 ssh-agent
1559 1497 1497 ? 00:00:00 bluetooth-apple
1561 1497 1497 ? 00:00:05 gnome-panel

Friday, June 11, 2010

How to get inode details ?

# istat x
Inode 25058 on device 10/4 File
Protection: rw------- Owner: 0(root) Group: 0(system)
Link count: 1 Length 35437 bytes
Last updated: Tue Apr 27 06:14:04 CDT 2010 Publish Post
Last modified: Tue Apr 27 06:14:04 CDT 2010
Last accessed: Tue Apr 27 06:14:04 CDT 2010

The syntax is : istat

Wednesday, June 9, 2010

Extract files froma fileset

restore -qxvf

Lets start with AIX tip - how to get a fileset associated with a file ?

# lslpp -w /usr/bin/ls
File Fileset Type
/usr/bin/ls bos.rte.commands File