LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2005, 12:13 PM   #1
m_simin
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Arrow Shared Ram from Linux to Windows


Hey there!

I've two computers sharing a ramstick (so i was promised by my boss)

Linux is running realtime calculations, and windows is reading the data off the ramstick and displays it in a user-friendly format.

^^^ that's the goal.
I'm a C newb unfortunatly, so I'm learning and developing at the same time.
From what I found and what I was explained here's what I use:

Windows:
CreateFileMapping(); MapViewOfFile();

Linux:
shmget(); shmat();

But linux uses numbers and Windows uses string name for sharing it.

I'm looking for all/any help/comment that all/any of you can provide

Thanks!
 
Old 06-09-2005, 12:25 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
How do you have 2 computers sharing a stick of RAM?
 
Old 06-09-2005, 12:40 PM   #3
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
He can't unless he's mapping drives.

Anyway, he's going to have problems with file locking.
 
Old 06-09-2005, 12:47 PM   #4
m_simin
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
they're on the same bus...
I dont really know the nature of it, i'm just looking for help on what to do, rather than what my boss is doing
 
Old 06-09-2005, 01:18 PM   #5
supermyself
LQ Newbie
 
Registered: May 2005
Posts: 17

Rep: Reputation: 0
Perhaps,you should embed assemble language in C when accessing the ram.

Because both the windows and linux are run on the same hardware.
 
Old 06-13-2005, 12:19 PM   #6
m_simin
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
The two computers are on VXI chassis, you think that would give me any problems?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 01:14 AM
Using windows shared printer from linux DaveAtFGI Linux - Newbie 6 10-29-2005 05:07 PM
cant get linux to go into windows shared folders kamowa Linux - Networking 4 09-22-2005 01:02 PM
How do I let Linux see Windows Shared Dirctories Wolfy Linux - Networking 25 07-27-2004 02:53 PM
vga shared ram nullpt *BSD 2 09-26-2003 06:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration