*** MultiThreading Help
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

*** MultiThreading Help

Started by NightLitch, 14 July, 2004, 14:55:14

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

NightLitch

Hey you all expecienced lua scripters/programmers.

Anyone that can help out 2 understand MultiThreading or give me a page about it plz...

/NL
//NL

plop

http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

tezlo

#2
nothing to do with lua..
basically, multithreading is the ability of an operating system to execute different parts of a program (threads) simultaneously
edit.. lol plop :) indeed you're best off asking google

NotRabidWombat



I like childish behavior. Maybe this post will be deleted next.

NightLitch

Some other than me feels like trying 2 create an exampel for say server/client?

Wombat could you maybe compile the LuaThreads for me plz, maybe that is some simpler than Coroutines maybe... Am stuck where I am now...

trying 2 figuring out how Coroutines works but hard when I don't know what every english word means...

/NL
//NL

NightLitch

I Just read about LuaThreads AND I must say, that would surely be easier than Coroutines just by looking at it... lol

plz compile it for me, due because I don't now how 2 compile...

/NL
//NL

[NL]Pur

Quotenothing to do with lua..
basically, multithreading is the ability of an operating system to execute different parts of a program (threads) simultaneously
edit.. lol plop :) indeed you're best off asking google

i always thought multithreading was the ablility of an operating system to execute, different programs at the same time.

NightLitch

or diff. functions that make the gui or hub frezze...

plzplz compile LuaThreads for me...

/NL
//NL

Herodes

QuoteOriginally posted by [NL]Pur
i always thought multithreading was the ablility of an operating system to execute, different programs at the same time.

my brain says 99% chances this is multitasking ... loly :)

kepp

Actually night, I do not belive you need Coroutines nor MultiT.

A socket shall not freeze an entiry program unless you handle it wrong.
Guarding    

NotRabidWombat

#10
"I Just read about LuaThreads AND I must say, that would surely be easier than Coroutines just by looking at it... lol

plz compile it for me, due because I don't now how 2 compile..."

I'm not convinced this will be easier in the long run. When you have real threads you must now be concerned with thread safety. You will have to ensure you so not operate on data that the other thread could be operating on.
I'll see what I can do anyway. In the meantime, coroutines are your best choice.

"Actually night, I do not belive you need Coroutines nor MultiT.

A socket shall not freeze an entiry program unless you handle it wrong."

Socket communication always works best with additional threads because of timeouts and listening.

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

NightLitch

QuoteOriginally posted by kepp
Actually night, I do not belive you need Coroutines nor MultiT.

A socket shall not freeze an entiry program unless you handle it wrong.

If so, just you try create a simple script trying just 2 get $Lock from ptokax or something... I on the edge on frustration now... heheh...

QuoteOriginally posted by NotRabidWombat
I'm not convinced this will be easier in the long run. When you have real threads you must now be concerned with thread safety. You will have to ensure you so not operate on data that the other thread could be operating on.
I'll see what I can do anyway. In the meantime, coroutines are your best choice. "
Ok. Well I hope I can learn something then... Am real stuck...

Without help I don't now what/where 2 begin...

/NL



/NL
//NL

VidFamne

Talking about threads. Is there anybody who knows
how many threads Ptokax is running?

[NL]Pur

QuoteIf so, just you try create a simple script trying just 2 get $Lock from ptokax or something... I on the edge on frustration now... heheh...

you can't get the $Lock thru scripting with ptokax.

NightLitch

QuoteOriginally posted by [NL]Pur
QuoteIf so, just you try create a simple script trying just 2 get $Lock from ptokax or something... I on the edge on frustration now... heheh...

you can't get the $Lock thru scripting with ptokax.

ehm... yeah I now that... but this is for my gui so I can connect with it 2 ptokax... =) get it now ?

But I can understand Coroutines...

/NL
//NL

[NL]Pur

well, this the first time you mention it in this thread that you want to create non blocking sockets with lua.

But aren't you going a bit overkill with everything :/

I mean there are easier/better solutions available.

NightLitch

QuoteOriginally posted by [NL]Pur
well, this the first time you mention it in this thread that you want to create non blocking sockets with lua.

But aren't you going a bit overkill with everything :/

I mean there are easier/better solutions available.

Am lua Freaking OUT here... lmao... Gonna try learn some basic C++ or VB where I can create a GUI that can connect as a Client 2 ptokax hub.

I want 2 catch all logs realtime...

/NL
//NL

NotRabidWombat

"Talking about threads. Is there anybody who knows
how many threads Ptokax is running?"

TestDrive 4 - Three.

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

Corayzon

yo night,

what exactly do you need help with?

cause you talk about program threading help and then you say your tring to write a protax hub client to connect to your hubscript?

how do these relate?

i fink if ya clearly state what u need to accomplish then maybe ppl can help alot quicker, rather then just asking for help on what you think might be the solution to your problem.

if ya need some help with vb or c# socket programing i would be glade to help ya out. i would have now, but i dont seem to see what ur asking on help with

me shutup now  :rolleyes:

noza

NightLitch

Well for the moment I have created my Own GUI in WxLua work great no bugs nothing.

My next movement I though would be if I could make the Gui connect 2 ptokax so I can have it on there and gather online information, such as: Realtime UserInfo database to look in, in Gui.

2 My problem/help then, I want 2 be able 2 connect 2 ptokax in some with my gui mostly then, I've read that you can implent C code into lua but I don't know how that works, though if I could get help with the socket and datareturning then Am happy...

But I don't now how to do it, anf it feels like wasted time for the moment trying 2 learn C++ or VB.

All help and solusions are welcome.

/NL
//NL

Corayzon

yo NightLitch,

i see. This could be done like so...

u can have a administration bot that connects to your hub the same way you would. and have extra protocol added to handle administrating the hub.

one thing that might help ya is my appserver mainframe. Its writin in vb and contains the p2p protocol handlers (lock to key and so on) and has side scripts implemented for various winstock functions.

another way would to be simply write a admin mode for your bot in ptokax. ie, type +admin and have ur bot open admin mode to your user.

hope this gives ya some ideas NightLitch

noza

SMF spam blocked by CleanTalk