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

#include
#include
main()
{
FILE *fd1;
fd1=freopen("/tmp/test.log","w",stdout);
if( fd1 == NULL )
{
printf("Error in openng a file");
return -1;
}
printf("This is test message should go in /tmp/test.log file\n");
fclose(fd1);
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"

http://www.informit.com/articles/article.aspx?p=29961&seqNum=5

Unix IPCs in detail - short and sweet

Very nice articles. I like it.
Inter Process Communication - Part-1
http://linuxgazette.net/104/ramankutty.html
Inter Process Communication- Part-2
http://linuxgazette.net/105/ramankutty.html