{"id":15681793,"url":"https://github.com/aktech/gil_talk","last_synced_at":"2025-08-02T03:09:58.571Z","repository":{"id":81552362,"uuid":"121309295","full_name":"aktech/gil_talk","owner":"aktech","description":"A talk on Global Interpreter Lock in Python","archived":false,"fork":false,"pushed_at":"2025-03-03T10:23:01.000Z","size":4211,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T09:52:42.865Z","etag":null,"topics":["multithreading","python","python-gil"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aktech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-02-12T22:18:05.000Z","updated_at":"2025-03-29T17:24:28.000Z","dependencies_parsed_at":"2024-10-23T01:50:49.474Z","dependency_job_id":"3257ab08-04cd-4ff9-8326-f05cea908b6a","html_url":"https://github.com/aktech/gil_talk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aktech/gil_talk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fgil_talk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fgil_talk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fgil_talk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fgil_talk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aktech","download_url":"https://codeload.github.com/aktech/gil_talk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fgil_talk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268330913,"owners_count":24233151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multithreading","python","python-gil"],"created_at":"2024-10-03T17:00:01.418Z","updated_at":"2025-08-02T03:09:58.537Z","avatar_url":"https://github.com/aktech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIL Talk\n\n[![GIL Talk Demo](https://github.com/aktech/gil_talk/actions/workflows/test.yml/badge.svg)](https://github.com/aktech/gil_talk/actions/workflows/test.yml)\n\nA talk on Global Interpreter lock.\n\n## Contents\n\n### Functions threads API\n\n```bash\n$ python python_multithreading/function_threads.py\n```\n\n### Class based threads API\n\n```bash\n$ python python_multithreading/class_threads.py\n```\n\n### Extension Module\n\nPython C extension module is written in `extension_module.c` to build it on mac, run:\n\n```bash\n$ python python_c_extension/setup.py build\n```\n\nThe above will will compile `extension_module.c`, and produce an extension module\nin the build directory. Depending on the system, the module file will end up in\na subdirectory `build/lib.system.extension_module.so`.\n\nCopy the built `*.so` file in the current directory, for e.g.:\n\n```bash\n$ cp -r build/*/* python_c_extension\n```\n\nThe function defined in extensions module is used in `c_ext_gil_test.py`, run it\nas following:\n\n```bash\n$ python python_c_extension/c_extension_gil.py\nSingle Thread: 2.118302\nTwo Threads:   1.348021\n```\n\n### Compile and run C Threads\n\n* compile\n\n```bash\n$ g++ cpp_multithreading/c_threads.cpp -o cpp_multithreading/c_threads\n```\n\n* run\n\n```bash\n$ ./cpp_multithreading/c_threads\n```\n\n### Acknowledgement\n\nThanks to [Garvit](https://garvit.in/) and [Suhaib](https://suheb.in/), who played a vital role in the\npreparation of this presentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faktech%2Fgil_talk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faktech%2Fgil_talk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faktech%2Fgil_talk/lists"}