Title: Process vs. Thread for multithreading · Issue #170 · alliedvision/VimbaPython · GitHub
Open Graph Title: Process vs. Thread for multithreading · Issue #170 · alliedvision/VimbaPython
X Title: Process vs. Thread for multithreading · Issue #170 · alliedvision/VimbaPython
Description: The example in multithreading_opencv.py uses Thread objects rather than multiprocessing.Process objects in Python. I have an implementation that simultaneously is attempting to stream from 2 cameras in separate Process objects rather tha...
Open Graph Description: The example in multithreading_opencv.py uses Thread objects rather than multiprocessing.Process objects in Python. I have an implementation that simultaneously is attempting to stream from 2 camera...
X Description: The example in multithreading_opencv.py uses Thread objects rather than multiprocessing.Process objects in Python. I have an implementation that simultaneously is attempting to stream from 2 camera...
Opengraph URL: https://github.com/alliedvision/VimbaPython/issues/170
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Process vs. Thread for multithreading","articleBody":"The example in `multithreading_opencv.py` uses `Thread` objects rather than `multiprocessing.Process` objects in Python.\r\n\r\nI have an implementation that simultaneously is attempting to stream from 2 cameras in separate `Process` objects rather than `Thread` objects on an Ubuntu machine, and we are seeing some inconsistencies in how Vimba behaves. We have two GigE cameras connected on separate NICs.\r\n\r\nIs there a reason that Threads are preferred? Is there an issue `fork`-ing the Vimba singleton in `Process` objects that could be causing an issue? The default behavior in creating `Process` objects on Linux is `fork` rather than `spawn`, so it is possible that using `spawn` does not create a problem for the Vimba singleton?","author":{"url":"https://github.com/mprat","@type":"Person","name":"mprat"},"datePublished":"2023-09-29T15:04:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/170/VimbaPython/issues/170"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a3bb1ba9-4e67-d6ca-c7f6-bd62fec4115b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA4C:3ED5C4:B0062A:FDE531:6A4CBB42 |
| html-safe-nonce | 2ba5ef7d207f5b69389d0cc0c6b17f0afe6b53fd9d0ad084a2b822f7f9abc4bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTRDOjNFRDVDNDpCMDA2MkE6RkRFNTMxOjZBNENCQjQyIiwidmlzaXRvcl9pZCI6IjgwNjc2MTk3MjUzODE1MTYwOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0583559291d206048a4715898c1e314710c37b154a84abbbc53461aebf9e2124 |
| hovercard-subject-tag | issue:1919438816 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/alliedvision/VimbaPython/170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b060857b1041d54d38438b177922922178f1332e9d20fad6e3e22af8f55cc311/alliedvision/VimbaPython/issues/170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b060857b1041d54d38438b177922922178f1332e9d20fad6e3e22af8f55cc311/alliedvision/VimbaPython/issues/170 |
| og:image:alt | The example in multithreading_opencv.py uses Thread objects rather than multiprocessing.Process objects in Python. I have an implementation that simultaneously is attempting to stream from 2 camera... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mprat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/alliedvision/VimbaPython git https://github.com/alliedvision/VimbaPython.git |
| octolytics-dimension-user_id | 26818220 |
| octolytics-dimension-user_login | alliedvision |
| octolytics-dimension-repository_id | 224388237 |
| octolytics-dimension-repository_nwo | alliedvision/VimbaPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 224388237 |
| octolytics-dimension-repository_network_root_nwo | alliedvision/VimbaPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width