15,894,291 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Dasisqo (Top 14 by date)
Dasisqo
21-Jul-21 8:24am
View
I have understood from explanations here than python does work with one thread at a time, what i am trying is to make the thread to be multiple and execute each line of thread simultaneously. Printing out more threads of the function and execute each line at a time.
From my code edition which is
for i in range(400):
try:
thread=consumer(quee)
thread.setDaemon(True)
thread.start()
thread.excepthook()
except:
print "Working only with %s threads"%i
break
The function prints out one line and execute it. I am asking if there are other means to make the work multi threading and execute each line at a time.
Dasisqo
21-Jul-21 7:34am
View
If i run the code with the tread
for i in range(400):
try:
thread=consumer(quee)
thread.setDaemon(True)
thread.start()
except:
print "Working only with %s threads"%i
break
The thread will run fine for a second and will die without the functions not complete in the code.
I decided to set the thread with thread.excepthook()
for i in range(400):
try:
thread=consumer(quee)
thread.setDaemon(True)
thread.start()
thread.excepthook()
except:
print "Working only with %s threads"%i
break
The code will work fine with (0) threads but it is slower.
Dasisqo
17-Jul-21 17:02pm
View
Deleted
I will wait for the coder to reach my request, thanks in advance
Dasisqo
16-Jul-21 18:44pm
View
Deleted
def run(self):
global to_checks
while self.work:
if not self.connected:
if self.attemp<=0:
return 0
self.connect()
self.attemp-=1
if len(to_check)>0:
self.find()
time.sleep(self.interval)
Dasisqo
16-Jul-21 18:44pm
View
Deleted
def run(self):
global to_checks
while self.work:
if not self.connected:
if self.attemp<=0:
return 0
self.connect()
self.attemp-=1
if len(to_check)>0:
self.find()
time.sleep(self.interval)
Dasisqo
16-Jul-21 16:47pm
View
4shared is free shared file hosting service, anyone can upload and download from any source.
Dasisqo
16-Jul-21 15:11pm
View
If you can't implement help to the code, it's fine if you step outside
Dasisqo
16-Jul-21 12:26pm
View
This is not a comment bro, i am seeking for solutions.
Dasisqo
16-Jul-21 12:24pm
View
I found the code from 4shared and i want to implement some elements.
Dasisqo
16-Jul-21 5:14am
View
Please correct the error and give me the right code
Dasisqo
15-Jul-21 17:06pm
View
i prefer to refer to any good python coder
Dasisqo
15-Jul-21 16:41pm
View
Deleted
I have displayed where i thought might be the problem but it seems that part is not the problem. "banner=s.recv(1024)
#print "'"+banner+"'"
#exit()' This is an smtp vulnerability scan test.
Dasisqo
15-Jul-21 16:40pm
View
Scanning connection to vulnerabilities
Dasisqo
15-Jul-21 16:38pm
View
The code is disconnecting from Target, i only want to implement reconnection to the target after the first attempt failed, i have tried so many tricks from my search and it seems i am not coding it so well.
Show More