Go to Post Picking up tetra's is going to be as easy as picking up a person of the opposite sex. While a select few will master it; others will be bumbling maroons.. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 22-02-2014, 10:04
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Morse Code

Don't be afraid of threads. They are a very basic mechanism in any real-time or embedded code development. I know Dave Wilner personally and was involved in the periphery of the Pathfinder problem.

The confusion came as a result of something called the priority inversion problem that is common in real-time systems. In VxWorks, there are 3 different kinds of semaphores that are used for different purposes. The one that's used in the "CRITICAL_REGION/END_REGION" code is the mutual exclusion semaphore that caused the problems for Pathfinder. The problem with Pathfinder was that that semaphore was not created with the SEM_INVERSION_SAFE flag set. However, the constructor used in WPILib automatically set that flag, so you should be good.

Just make sure you protect any global variable accesses in the CRITICAL_REGION/END_REGION wrappers and everything should work fine.

Good Luck,

Mike
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi