Skip navigation.
Home
The QNX Community Portal

View topic - Blocking on serial port read/write

Blocking on serial port read/write

For discussion of realtime and/or embedded programming.

Blocking on serial port read/write

Postby sheran.vaz » Fri Jun 14, 2013 12:20 pm

I have few queries regarding serial port read/write:

1. Can readcond() remain blocked eventhough the specified TIMEOUT has happened?

2. Can write() call get blocked?

Kindly help me understand.
sheran.vaz
Active Member
 
Posts: 98
Joined: Mon May 11, 2009 9:17 am

Re: Blocking on serial port read/write

Postby maschoen » Fri Jun 14, 2013 6:41 pm

1. Can readcond() remain blocked eventhough the specified TIMEOUT has happened?

A higher priority process in a cpu loop could prevent readcond() from returning. This is not really blocked since your thread would be in READY mode.

2. Can write() call get blocked?

On a serial port? Sure. If you have flow control turned on, your output buffer can fill up and then you are blocked on write().
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests

cron