SHM:it's an area of storage that can be read and written by more than one process.
MSGQ:A message queue is like a pipe,by using more comprehensive mechanism we can read message from both end.
SHM:It provides no inherent synchronization
MSGQ:It provides inherent synchronization,So the writer can never fail after writing only a partial message, and the reader will either retrieve a complete message or nothing at all.
SHM:possiblity of occuring race condition.
MSGQ: No race conditon actually occure.
SHM: faster
MSGQ:slower than shared memory
difference between register and memory location
Direction: gets: from standard input to memory puts: from memory to standard input note: 'gets' is unsafe, use 'fgets' instead
Shared memory and thread are not compareable since both of them relies to different technologies. A Shared memory is one of the methods to implement interprocess communication or IPC, by which different processes or tasks can access the same memory area, to share data between them. A thread or thread of execution is a mechanism by which a process can be split in to multiple simultaneously running pieces of code.
The difference here is that char *p = "Hello"; will place Hello world in the read-only parts of the memory and making p a pointer to that, making any writing operation on this memory illegal. While doing: char p[] = "Hello"; puts the literal string in read-only memory and copies the string to newly allocated memory on the stack. p[0] = 'A'; is legal.
Generally this will be part of an error message telling you that your environment ran out of memory when it tried to execute the command at the 100th line of your code.
What is the difference between a regular memory card and an Ultra Memory card
what is the difference between the memory store model and the working memory model?
Marketing.
Memory is microchip; address are processor board slots
difference between register and memory location
pagefile is the virtual memory
Cache memory is smaller and quicker, primary memory larger and slower.
what is the diference between a computer internal memory and external memory
There is no difference
i am not sure
ROM is volatile
A person with an eidetic memory mentally reproduces images or scenes in his mind so vividly, that his mind doesn't notice the difference between it and reality, whereas people with a photographic memory can tell the difference.