In addition to what Paul wrote:
GNU Radio automatically spawns a thread for *every* GNU Radio block. Many of the blocks you see, however, are hierarchical blocks containing multiple blocks inside.
Also note that a question like "how many threads are spawned" can easily be answered using tools like htop, which are able to list each thread and its CPU usage.
So, if your multithreaded code crashes: well, multithreaded code tends to do that if you're not very strict about keeping the data of multiple threads cleanly separated and spend a lot of thought on how to partition your problem. GNU Radio takes that off your shoulders :)
Best regards,
Marcus
You should read the accompanying academic papers, especially [1]. It should run in real-time with any sort of reasonable hardware. I'm not sure why you would want to re-implement the decoder.
[1] http://www.ccs-labs.org/bib/bloessl2013towards/bloessl2013towards.pdf
Towards an Open Source IEEE802.11p Stack: A Full SDR-based Transceiver in GNURadio Bastian Bloessl , Michele Segatay, Christoph Sommer and Falko Dressler
From: Discuss-gnuradio <discuss-gnuradio-bounces+garverp=gatech.edu@gnu.org> on behalf of sumitstop <sumit.kumar@research.iiit.ac.in>
Sent: Wednesday, November 2, 2016 9:41:48 AM
To: Discuss-gnuradio@gnu.org
Subject: [Discuss-gnuradio] gr-ieee 802.11 and threads for real timeHello,
I am in the process of constructing my own 802.11 receiver using C and UHD.
I was looking at the implementation of gr-ieee 802.11.
I am trying to figure out how many parallel threads it is using for the
receiver and transmitter. In order to work in real time, especially decoding
802.11 packets in real time you need multiple threads. Also I am wondering
if the threading stuff is being taken care by gr-ieee 802.11 package or GNU
Radio. Because I coudn't find any threading related stuff in the mentioned
package.
In my code, I am using pthreads, there is a thread pool which creates 50
threads for receiver.
But it crashes and goes out of sync for almost 60% of the times. I was
wondering if I can get some clue to deal with real time decoding from users.
Regards
Sumit
--
View this message in context: http://gnuradio.4.n7.nabble.com/gr-ieee-802-11-and-threads-for-real-time-tp61872.html
Sent from the GnuRadio mailing list archive at Nabble.com.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment