what is the definition session?

As title , I want to handle images and sound in real-time, but the computation time is longer than frame length of sound and cannot be divided into several parts. So, I open two matlab programs(two workspaces, two command window) to run in two CPU cores. But there is some data needs to be share and only write or only read. sharedmatrix says it can share memory spaces in different sessions with out I/O. But the question is what is session?
p.s the website introducing sharedmatrix is out of order. anyone the details of it? http://smlv.cc.gatech.edu/2010/08/27/shared-memory-in-matlab/

 採用された回答

Walter Roberson
Walter Roberson 2015 年 10 月 4 日

0 投票

In this context, "session" is "process".
For others who might be reading: sharedmatrix is this file exchange contribution

3 件のコメント

Yian
Yian 2015 年 10 月 5 日
Does sharedmatrix can be used to transfer data between two different command window of matlab?
Walter Roberson
Walter Roberson 2015 年 10 月 5 日
Yes, if they are on the same machine (or sometimes if they are on the same cluster, depending on the operating system). Different command windows running MATLAB would be different processes.
You should also consider using tcpip, and consider using Parallel Computing Toolbox with SPMD and labsend() to transfer the data.
Yian
Yian 2015 年 10 月 5 日
3Q I will try it

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

質問済み:

2015 年 10 月 4 日

コメント済み:

2015 年 10 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by