Friday, August 27, 2010

Process Address Space - 1 (Linux)

The address space of a process consists of all logical addresses that the process is allowed to use.

1. Each process address space is separate.
2. The kernel allocates logical addresses to a process in intervals called memory
regions.
             Memory regions have initial logical address and a length.

Situations where process can get new memory regions : -

1. Creating a new process. ( fork() ).
2. Loading an entirely new program. ( execve() )
3. Memory mapping a file. ( mmap() ).
4. Growing its stack. ( stores local data, return addresses, used for parameter passing ).
5. Creating shared memory. ( shmat() )
6. Expanding its heap. ( malloc() ).


There are three areas where the program gets mapped into memory viz.
1. Code Segment : - Also known as the text segment.
                                    Contains the executable instructions.
2. Data Segment : -
          Three Categories :-
       1. Initialized Data : - Statically allocated or global data that are initialized with
                                       non-zero values.
        2. Zero-Initialized or BSS data : - Uninitialized data.

        3. Heap : - Way to allocate memory at run-time (dynamically).
3. Stack Segment : - Local variables, Function Parameters.

OpenSuSe 11.3 mic problem solution for Dell 1545 Inspiron

Hi Guys,

          I have just installed OpenSUSE 11.3 on my Dell Inspiron 1545 laptop.

But was having an issue with the mic not working with the my Laptop.

For GNOME

So following are the simple steps to follow to get it working.



1. Go to the Computer -> Control Center -> Sound

Sound Preferences window gets opened and then select the input tab from that.



2. Just check the Connector label it has got 4 select menus to it s right.

By default its the microphone 1 / microphone just make that microphone 2 /microphone and check whether it s working or not.

You need Pulse Audio package installed.

Just type sudo zypper in pulseaudio on terminal to get it installed.