operating-system


Semaphore under uCOS-III


I use uCOS-III under Arm Cortex M4 and have the following problem:
If OSSemPend() is executed twice within the same task), like
timeout = 100; /* 0.1 s */
OSSemPend(rtos_sem_p, timeout, OS_OPT_PEND_BLOCKING, NULL, &err);
...
OSSemPend(rtos_sem_p, timeout, OS_OPT_PEND_BLOCKING, NULL, &err);
...
(without issuing OSSemPost()) it will not run into the timeout at the second call but block infinitely.
I checked what I can, but still cannot find the problem...
Can anybody explain me what happens here?
Many Thanks,
Michael

Related Links

Non-Preemptive multitasking Scheduling Algorithm
Is An Operating System an Process ?
Virtual Memory,Page size,Maximum Virtual Address
Whats the relationship between file system block size and disk space wasted per file
Page fault when trying to access VESA LFB with paging enabled
ROS Operating system services ? How?
Where do driver developers get hardware specifications?
What is the difference between standalone and desktop application?
Memory mapped IO - who maps the addresses to the physical address space?
Round Robin Scheduling with arrival time and priority level
What's the best language to start write OS
How exactly does a program talk to a device driver?
What is a multi-rate non preemptive OS?
Finding TLB size with a program?
Calculating Size of a Page Table
What is the exact definition of 'process preemption'?

Categories

HOME
opencart
freeradius
vagrant
clearcase
livecode
workflow
writefile
hid
command-prompt
openlayers-3
elk-stack
openfoam
kurento
cocotb
elastic-load-balancer
azure-graph-api
documentum
cname
feature-extraction
live-streaming
stimulsoft
sql-injection
orange-api
twisted
pygobject
http-authentication
clr
social-tables
bsd
firemonkey-style
fusetools
beego
running-object-table
onchange
basex
bonita
sfml
boolean-logic
tilemill
vcenter
adminer
express-session
amazon-kms
keyboard-layout
twilio-php
forms-authentication
mv
recovery
tidal-scheduler
sbjson
praat
swfupload
distributed-caching
pyttsx
yoast
transparency
rightnow-crm
ssi
simple-schema
test-data
glassfish-4.1
zend-server
instafeedjs
nrf51
perl-data-structures
qtextedit
scheduledexecutorservice
livecycle
android-sdcard
powerpoint-2013
strpos
openshift-cartridge
gitlab-omnibus
blockquote
flow-js
prism-4
python-curses
debug-symbols
adhoc-polymorphism
nesper
aho-corasick
two.js
prism.js
bittorrent-sync
xmi
windows-taskbar
illuminate-container
apache-shindig
axacropdf
ofstream
ntlmv2
zend-pdf
android-dialog
platform-independent
monocross
gwt-celltable
memory-pool
server-variables
getopts
nosetests
self-tracking-entities
accumulator
error-detection

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App