- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My design contain two CPU's. Each have his own on-chip-RAM. My question is: If I want that CPU1 could read the CPU2's RAM, do I need to use mutex? Thanks.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on the application. If you only need to read one word (32 bits) then you don't need a mutex. If you need to read a whole block made of several words, and need that block to be consistent, then you need a mutex. Without the mutex, if CPU1 is writing the block while CPU2 is reading it, then the CPU2 will get a mix of the old and the new block, which may have some undesirable consequences.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the answer...

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page