[Chennaipy] Mutli- threading in cython
aishwarya selvaraj
aishwaryaselvaraj1708 at gmail.com
Mon May 21 07:42:58 EDT 2018
Dear all,
I was programming for Andor CCD using SDK libraries in python using cython.
I have a piece of code within my .pyx script which does the function of
storing the data into a 3D array. While acquiring n frames, each of them is
stored in a 3D array named data, which later I would be displaying. But
this creates a bottleneck in my code.
Hence I need to introduce threading, such that for each frame to be stored
there are individual threads for the same and the frames could be displayed
simultaneously without creating a performance lag.
Since I have never worked on multithreading, could anyone please help me.
PFA of the code. (LiveAcquisition code)
--
Regards,
Aishwarya Selvaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20180521/a5266b76/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atcore_py.pyx
Type: application/octet-stream
Size: 32923 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20180521/a5266b76/attachment-0001.obj>
More information about the Chennaipy
mailing list