Thread View: comp.sys.sequent
1 messages
1 total messages
Started by amehta
Mon, 23 Oct 1989 19:10
Difference in access time between local and shared vars?
Author: amehta
Date: Mon, 23 Oct 1989 19:10
Date: Mon, 23 Oct 1989 19:10
37 lines
1397 bytes
1397 bytes
Hi, Can someone tell me if there is a difference in performance between the following types of data (I am programming in C, on a Balance 21000): Local data, allocated: a) at compile time. b) by function invokation (ie, a variable declared inside a function). c) by a call to "malloc". Shared data, allocated: a) at compile time. b) by a call to "shmalloc". Shared data, that is, a) read/updated by one processor. b) read by many; updated by one. c) read by many; updated by many. I understand that each processor has 8K of local RAM, 8K of cache RAM, and the rest is Shared Memory, which is accessed through a common bus. Does all local data get stored in a process's Local RAM? Does the time for accessing/updating data depend on any of the above factors, and if so, by how much? Inquiring minds want to know... Thanks in advance for your time and help!! Alok Mehta mehtaa@cs.rpi.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads